The state Senate passed a bill Thursday that allows the city to use voting machines for both this year's mayoral primaries and potential runoff elections.
The bill also moves the date of a potential runoff election to October 1 from September 24.
The same bill has also passed in the state Assembly.
The city Board of Elections had called for the return of the lever machines, saying they would not have enough time to test the new electronic machines between the September 10 primary and a potential runoff.
The state Legislature was also expected to take action on a bill that would establish a pilot program for speed cameras in the city.
As part of the program, speed cameras would be installed near schools, and they would automatically ticket drivers who break the speed limit.
Supporters of the bill say it is a good thing for the city.
"The speed camera bill is crucial for New York City," said Assemblywoman Deborah Glick of Manhattan. "We understand that we have more and more deaths and injuries from speeding in a congested city."
Thursday was the last scheduled day of the legislative session, but a lot of the bills did not get in on time, so the session will carry over into Friday. Both the state Senate and Assembly are expected to wrap up by Friday night.