The state House of Representatives joined the Senate in approving the measure early Sunday, as lawmakers stayed past their usual 11 p.m. deadline to finish voting on non-budget matters.
The measure would extend the use of automated cameras in Philadelphia through 2017.
It also would allow the devices in Pittsburgh and suburban Philadelphia municipalities with at least 20,000 residents and accredited police departments. The programs would be subject to approval by the Pennsylvania Department of Transportation.
The bill also would require people younger than 18 to complete a PennDOT-approved safety course before they can obtain a junior license to operate motorcycles.