State and city officials have reached a deal to reactivate speed cameras around schools in New York City.