The City Council has approved a bill to reactivate 140 school zone speed cameras.
The program expired in July after the state Senate failed to renew it.
Since then, more than 100,000 drivers have been caught speeding by the cameras, but no tickets have been issued.
On Monday, Governor Andrew Cuomo announced he would reinstate the program with an emergency executive order requiring the Department of Motor Vehicles to cooperate with city officials.
City Council Corey Johnson says the bill was a team effort between the Council, the governor and Mayor Bill de Blasio.
"We rushed to get this done and get the existing cameras turned on before school starts," Johnson said. "It was a herculean effort to get to this point today."
The mayor will sign the bill into law next Tuesday.
The plan keeps the cameras activated for 30 days, giving the state senate more time to convene on the issue.