The vote was 219 to 203.
House Republican leaders, trying to recover from a humiliating political defeat, made one change in the bill. The new version would offset more of the cost of disaster assistance by rescinding $100 million from an Energy Department program that guaranteed a loan for Solyndra, the solar equipment manufacturer that filed recently for bankruptcy protection.
The bill, to finance government operations for seven weeks after the start of the fiscal year on Oct. 1, faces problems in the Senate, where Democrats want to spend more, without cutting other programs to offset the cost.
“The House bill is not an honest effort at compromise,’’ said the Senate majority leader, Harry Reid, Democrat of Nevada. “It fails to provide the relief that our fellow Americans need as they struggle to rebuild their lives in the wake of floods, wildfires and hurricanes, and it will be rejected by the Senate.’’
Mr. Reid said he had hoped House Republicans would move toward the middle. “Instead,’’ he said, “they moved even further toward the Tea Party.’’
If the Senate balks, it is not clear how the two houses would overcome the resulting impasse and avert a government shutdown. Most federal agencies need money to continue operations beyond Oct. 1. The disaster relief fund of the Federal Emergency Management Agency is running short of money. And lawmakers were planning to leave town for a recess scheduled for next week.
House Republican leaders, who lost control of their caucus on Wednesday, worked furiously on Thursday to round up votes for the revised version of the stopgap bill.
They prevailed by halving the number of defections from their ranks. On Wednesday, 48 Republicans voted against the bill. On Friday, just 24 voted no.
Representative David Dreier, Republican of California and chairman of the Rules Committee, said it had been “an ugly, messy, difficult process.’’ The purpose of the change, he said, was to prevent “another boondoggle like Solyndra.’’
The new version of the House bill, like the original, would partially offset the cost of disaster assistance by cutting a separate Energy Department loan program that promotes development of energy-efficient cars. This cut infuriates Democrats in the House and the Senate, who say the program is creating thousands of jobs at automakers and auto parts suppliers.
“The bill was wrong yesterday, the bill is wrong today,’’ Representative Louise M. Slaughter, Democrat of New York, said Thursday night on the House floor. “Virtually nothing has changed.’’
The House Democratic leader, Nancy Pelosi of California, said Republicans were offering “the same old warmed-over stew that was rejected’’ on Wednesday.
Speaker John A. Boehner had solicited the views of his colleagues at a meeting of the House Republican Conference, where lawmakers expressed frustration at the setback they suffered Wednesday on the bill to provide $3.65 billion in disaster relief.
In an effort to win over fiscal conservatives, Mr. Boehner told members of his caucus that the bill defeated Wednesday was the best deal they were going to get.
Representative Greg Walden, Republican of Oregon, who voted for the original bill, said: “If you are a conservative, it just gets worse from here. The Senate wants to spend a lot more.’’
The Senate last week approved a bill that includes $6.9 billion of disaster assistance, nearly twice as much as the House bill.
Four dozen House Republicans defied party leaders and voted against the original bill. Many said they wanted deeper cuts in overall spending.
Representative Louie Gohmert, Republican of Texas, said he had to stay true to his constituents.
This article has been revised to reflect the following correction:
Correction: September 23, 2011
An earlier version of this article misspelled the surname of John A. Boehner, the House speaker, in one reference.