The House voted 249-176 to pass the Bipartisan American Affordability and Jobs Act, sending the landmark permitting reform bill to President Donald Trump’s desk. Nearly all House Republicans and 46 Democrats voted for the measure, which aims to make it easier to build large-scale infrastructure and energy projects in the U.S.

Trump has spoken highly of the proposal and is expected to sign it into law. The bill, S. 5653 and H.R. 2347, is the most significant energy legislation to pass Congress since the Inflation Reduction Act four years ago.

Principally negotiated by Sens. Shelley Moore Capito (R-W.Va.), Mike Lee (R-Utah), Martin Heinrich (D-N.M.) and Sheldon Whitehouse (D-R.I.), the measure would overhaul U.S. permitting rules. It would expand federal authority over interstate electricity transmission, shorten deadlines for environmental reviews and limit when projects can be challenged in court.

Republicans largely supported the legislation for its potential to speed approval of favored energy projects, including natural gas pipelines. Democrats were more divided. House Democratic leaders and many rank-and-file members said they had too little input in negotiations and objected to provisions they argued weakened environmental protections and tribal sovereignty.

“The bill undermines tribal sovereignty, eliminates judicial review and fails to guarantee in law that the Trump Administration will follow through on projects that increase low-carbon energy capacity,” said Speaker-designate Hakeem Jeffries (D-N.Y.), Majority Leader-elect Katherine Clark (D-Mass.) and Majority Whip-elect Pete Aguilar (D-Calif.). Other Democrats argued the compromises were a fair trade for provisions intended to help get more transmission lines and clean energy projects built.