The sides bickered for days before coming to an agreement late Monday to return to in-person learning amid a surge in COVID cases in the city and state.