Teachers, principals, and staff had been prepared to walk out if the deal was not reached in the country’s second-largest school district