The U.S. House of Representatives on Tuesday passed a major energy permitting bill to speed approvals for power plants, transmission lines, data centers and other major infrastructure projects, capping a four-year effort by Congress to ease bottlenecks blamed for rising energy costs.

House lawmakers voted 249-176 in favor of the Bipartisan American Affordability and Jobs Act, known as BAAJA, with 46 Democrats joining nearly all Republicans in support. The bill passed the Senate last month and now heads to President Donald Trump, who has said he will sign it into law.

The roughly 500-page bill streamlines permits and government reviews under the National Environmental Policy Act, the Clean Water Act and other protections. It sets firm deadlines for federal reviews, limits who can challenge projects in court, shortens the statute of limitations for legal challenges and ensures permits cannot be canceled for political reasons.

Supporters say the overhaul will cut years off the time needed to build energy projects, transmission lines, factories and housing, lowering costs for American households. "A vote for BAAJA is a vote against a failed status quo," said Rep. Ritchie Torres, a moderate Democrat from New York, who voted yes.

The vote again showed the divisions between centrist and progressive Democrats as the party prepares to take the majority in January. House Democratic leaders Hakeem Jeffries, Katherine Clark and Pete Aguilar urged Democrats to vote against the bill in its current form, saying it guts environmental review and tribal sovereignty. Environmental groups also opposed it, with Friends of the Earth and Oceana warning it weakens the Endangered Species Act and bedrock environmental protections.

Earlier on Tuesday, the House advanced the measure on a 213-210 procedural vote, setting up the final passage vote. The Senate passed BAAJA 62-33 in November after years in which a permitting reform deal had proved elusive.

The bill is poised to become law weeks before Democrats take control of Congress in January, capping the final weeks of Republican control of the House. Business, oil, renewable energy and housing groups have sought faster and more predictable project reviews for decades, and the National Association of Home Builders said the law would reduce delays and streamline development of critically needed housing supply.