The House voted 249-176 on Tuesday to accept the Senate's version of the Bipartisan American Affordability and Jobs Act, clearing for President Trump a sweeping overhaul of federal permitting rules that would shorten the time for challenging energy and infrastructure projects in court and narrow several environmental reviews.

The vote completes congressional action on a bill that passed the Senate 62-33 last month after it was negotiated by a rare bipartisan group: Republican Sens. Shelley Moore Capito of West Virginia and Mike Lee of Utah and Democratic Sens. Martin Heinrich of New Mexico and Sheldon Whitehouse of Rhode Island. Fourteen Senate Democrats joined all but two Republicans in supporting it.

Trump has embraced the measure. After Tuesday's vote he congratulated lawmakers of both parties for their "Great Wisdom" in a social media post, called permitting reform "a Big Deal, and so good for our Country," and predicted that "Investment will pour in," The Hill reported. "Many are saying that this is the Most Significant Bipartisan Victory in decades!" he wrote, according to CBS News. He is expected to sign the bill.

The White House budget office had weighed in earlier Tuesday with a formal statement of administration policy on the Senate amendment. The administration "strongly supports" the bill because it would lower energy and transportation costs, drive new construction and investment in infrastructure and create jobs, the statement said, as quoted by NBC News, which also reported that the White House said the legislation would "impose tight deadlines" to keep projects from languishing under review.

Republicans supplied most of the votes. The House roll call shows 202 Republicans in favor, 11 opposed and five not voting. Forty-six Democrats and one independent also backed the bill, NBC News reported, while 165 Democrats voted against it, according to CBS News.

Much of the bill is aimed at the reviews and lawsuits that its backers say can snag projects for years. A lawsuit challenging a federally approved project would have to be filed within 150 days of the approval, and only people who weighed in during the formal public comment period could sue, The Hill reported. The bill exempts certain activities, including expansions of natural gas pipelines, from environmental review, and it limits the alternatives that reviews must consider to those that meet the goal of the company sponsoring a project.

Other provisions would double the maximum term of water pollution permits from five years to 10, add hurdles to the Environmental Protection Agency's ability to set water quality criteria and make it harder for the agency and the states to block projects on environmental grounds. The bill also changes how the Endangered Species Act defines "best available science," a revision that environmental groups say sets a high threshold for protecting a species.

The measure also reaches into presidential power. It seeks to stop presidents from revoking permits that energy projects of any type have already received, a limit that The Hill reported would curb Trump's ability to block approved wind projects as well as moves like a Democratic president's revocation of the Keystone XL pipeline's approval. Developers could also sue the government if they can show a pattern of disparate treatment of certain energy sources.

For the electric grid, the bill lets federal regulators approve power lines when states fail to act and requires regional transmission planners to adopt a consolidated process that may help new power sources connect more quickly. Large data centers would have to pay for excess costs stemming from their electricity demand. The bill states that "no portion of the incremental cost" of a large data center may be allocated to other ratepayers, and it requires such facilities to pay for new generation and transmission.

The bill drew an unusual mix of supporters. Labor unions, the clean energy industry and fossil fuel groups backed it, while many environmental groups and Native American tribes opposed it, CBS News reported. "We need to make and build and construct and mine things in America faster," House Speaker Mike Johnson said Tuesday. Rep. Bruce Westerman of Arkansas, the Republican chairman of the Natural Resources Committee, said in a floor speech that the measure would take on a "broken, cumbersome and outdated federal permitting process," and Rep. Josh Harder, a California Democrat, told The Hill it was "a huge win across every sector of the American economy."

House Democratic leaders voted no. Minority Leader Hakeem Jeffries and his leadership team said in a statement that the bill "guts the National Environmental Policy Act, undermines tribal sovereignty, eliminates judicial review" and fails to guarantee in law that the administration will follow through on projects that add low-carbon energy, even as they acknowledged a clear and urgent need for permitting reform. Rep. Jared Huffman of California, the top Democrat on the Natural Resources Committee, warned on the floor that if the bill is enacted as written, "it will be remembered as the most sweeping rollback of environmental protections in modern history." Rep. Frank Pallone of New Jersey, the senior Democrat on the Energy and Commerce Committee, said its project certainty provisions would "hamstring implementation and enforcement" of the agency's public health protections.

Some Republicans had objections of their own. GOP critics argued that provisions making it easier to build power lines could harm the rights of landowners, The Hill reported, and 11 Republicans ended up voting against the bill.

Activists made a late push to defeat it, mobilizing protests aimed at undecided Democrats and flooding congressional offices with calls, NBC News reported. The bill also had to clear a procedural vote earlier in the day. Republicans, who have struggled with attendance, carried that vote with one Democrat, retiring Rep. Jared Golden of Maine, siding with them, while a few Democratic absences lowered the number of votes they needed, CBS News reported.

Rep. Mike Levin, a California Democrat, said the bill showed "real promise" on lowering costs and expanding clean energy but that he could not support it as written because of the risks to clean air and water. He called it "one of the hardest votes I have faced in my years in Congress."