The vote was 246 to 183, reflecting the Democrats’ considerable majority in the House and the Republicans’ deep dissatisfaction with the measure, whose estimated price tag has fluctuated daily and was finally placed at $787 billion on Friday. Not a single Republican voted in favor of the bill.
The Senate was expected to vote on the final legislation Friday evening, clearing the way for the paperwork to go to President Obama, who is eager to sign the measure.
"After all the debate, this legislation can be summed up in one word: Jobs," House Speaker Nancy Pelosi of California said. "The American people need action and they need action now."
But Representative John A. Boehner of Ohio, the House minority leader, lamented that a bill that was supposed to be about “jobs, jobs, jobs†had turned into one that was about “spending, spending, spending.â€
“We owe it to the people to get this bill right,†Mr. Boehner said.
President Obama and Democrats in Congress contend the package is designed to create or save 3.5 million jobs.
There was no suspense about the outcome, since the Democrats hold a 255-to-178 advantage in the House. The real suspense was how many, if any, Republicans would vote for the bill; none did two weeks ago, when the House approved its initial version of the legislation. A handful of Democrats opposed the bill on Friday.
“The country needs this package,†said Representative David Obey, the Wisconsin Democrat who is chairman of the Appropriations Committee. “I think we ought to get on with it.â€
But the committee’s ranking Republican, Jerry Lewis of California, asserted that the program would do far too little to finance road construction, flood control projects and other works for the public good.
“Facts are stubborn things,†Mr. Lewis said, describing the package as a recipe for bloated government programs that would saddle taxpayers with a debt burden “well, well into the future.â€
The legislation is the product of negotiations between the House and Senate, which had favored a somewhat larger stimulus. The final package ended up considerably smaller than either the House or Senate had originally approved.
President Obama, speaking at the White House to the Business Council, an association of chief executives, described the vigorous debate leading to the votes in Congress as “a good thing.â€
“Diverse viewpoints are the lifeblood of our democracy, and debating these viewpoints is how we learn from each other’s perspective and refine our approaches,†Mr. Obama said. The president said the program nearing passage would benefit not only middle-class families but “will also provide sensible tax relief to business that are trying to make payroll and create jobs.â€
But as debate in the House went on, it was clear that the gulf between Democrats and Republicans was as wide as ever.
Representative Charles B. Rangel, the New York Democrat who is chairman of the Ways and Means Committee, said the legislation would offer “hope not only for those people who are jobless, but hopeless.â€
But Representative Dave Camp of Michigan, the committee’s ranking Republican, complained that Republicans had been “frozen out†by Democrats. “Most important, the American people were frozen out,†he said. “Record me as a ‘no’ on this legislation.â€
David M. Herszenhorn contributed reporting.