But spending cuts demanded by Democratic moderates unhappy about voting to increase the deficit will mean layoffs next year by state governments and no health insurance subsidies for people laid off after Memorial Day.
The House approved the legislation in a 215-204 vote that capped a turbulent week for Democratic leaders, who were forced to kill $24 billion in aid to cash-starved states and $7 billion for health insurance subsidies for laid-off workers. The programs were created by last year's economic stimulus bill and Democratic leaders had wanted to extend them.
Left standing is the unemployment insurance extension and a grab bag of unfinished business, including numerous spending measures and a renewal of more than 50 tax breaks for individuals and businesses.
The legislation, which now faces an uncertain fate in the Senate, spends about $115 billion on tax breaks and spending such as assistance for doctors facing lower Medicare payments, a summer jobs program sought by minority lawmakers and settlements of long-running class-action lawsuits brought against the government by black farmers and American Indians.
Offsetting tax increases such as a new levy on investment and hedge fund managers helped bring the bill's drag on the federal deficit down to $54 billion, according to the Congressional Budget Office.
Despite House action, Democrats will miss a deadline of passing a jobless benefits measure before Memorial Day. The Senate left Washington Friday without acting on the legislation. The extended benefits program for the long-term jobless expires June 2, though the immediate impact will be relatively slight.
Still, it's an embarrassment for Democrats and is the third time this year that the extended unemployment insurance program will have lapsed, though only a small fraction of the 11 million people receiving unemployment benefits have been left in the lurch.
President Barack Obama issued a statement praising the measure, but said Congress should restore in future legislation the funding cut from the measure and also pass aid to school districts to help them avert teacher layoffs. But such moves face an uphill road after this week's events.
The weeklong turmoil in the House reflected increasing anxiety among fiscally conservative "Blue Dog" Democrats unhappy about adding to the deficit as the national debt closes in on $13 trillion. A version circulated last week would have added $134 billion to the deficit and was declared dead on arrival by deficit-conscious lawmakers.
Lawmakers also approved, by 245-171, a $23 billion provision to delay a scheduled 21 percent cut in Medicare reimbursements to doctors until 2012.