HARRISBURG, Pa. (AP) – Lawmakers are sending legislation to Democratic Gov. Tom Wolf to help Pennsylvania’s counties afford new voting machines, but the bill contains changes to voting laws that prompted opposition from Democratic lawmakers.

Both chambers of the Republican-controlled Legislature approved the bill by near-party line votes Thursday. Just seven Democrats voted for it.

READ MORE: Pittsburgh's Fireworks Task Force Uses ShotSpotter To Help Crackdown On Illegal Fireworks

One provision eliminates the ballot option for voters to simply select a straight-party ticket in elections. Democrats say that’ll benefit down-ballot Republican candidates.

Republicans initially had opposed Wolf’s demand that counties buy new voting machines before next year’s presidential election. Election-integrity advocates and computer scientists support it.

READ MORE: 2 Injured In Drive-By Shooting In Aliquippa

But Wednesday night, Republicans unveiled a measure to borrow up to $90 million for voting machines and inserted it into the wider election law bill.

The total cost for counties could exceed $100 million.

MORE NEWS: Former VA Doctor Who Admitted To Fondling Women Sentenced To Probation

(Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)