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: Parents Watch Clairton-Leechburg Football Game From Outside The Stadium

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: Fourth Stimulus Check: Will You See Another Relief Payment Soon?

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: UPMC Children's Hospital Leaders Say Hospital Will Not Turn Kids Away Or Ration Care Amid Increase In Patients

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