Washington (CNN) -- Both the Senate and the House of Representatives on Friday passed a short-term spending bill that would fund the government through Tuesday night.
President Barack Obama is expected to sign it soon.
Earlier in the day, House Majority Leader Steny Hoyer asked that action be taken in order to keep government running as negotiations in the Senate broke down Thursday night.
The Maryland Democrat said that rather than keeping House members waiting to vote on the larger $1.1 trillion bill -- since there is still no deal in the Senate -- leaders decided to move ahead with the temporary extension.
Hoyer said that Senate Majority Leader Harry Reid and Senate Minority Leader Mitch McConnell agreed that the legislative body would pass the House's spending measure and continue working on the final bill.
Spending authorization bills are necessary to keep the government running, and the current resolution expires on December 18. Both chambers had to approve a common approach to prevent the government from shutting down after that date.
The House passed a previous resolution that authorizes spending at the same level as last year until September 30, when fiscal year 2011 ends.
Hoyer's move comes after Senate Majority Leader Harry Reid conceded Thursday night he lacked the votes to bring up a $1.1 trillion spending bill designed to fund the federal government for the rest of the current fiscal year.
Hoyer said he hoped that after the House passes its version, they'll go home for the holiday and then come back if they need to match their bill to whatever the Senate passes.
Audible groans could be heard on the House floor, to which Hoyer responded: "Now, there are a lot of grumbling on my side. I appreciate your courtesy on your side."
He added that "I know there are at least 434 of my colleagues who are not happy about anything right now. I want you to know I will make that a unanimous judgment."
On Thursday night, Reid's shift culminated a Republican effort to kill the spending bill and likely put off major spending decisions for the rest of fiscal year 2011 until a more conservative Congress convenes in January.
The Senate spending bill, drafted by Democrats and Republicans on the Appropriations Committee, was a more flexible appropriation measure that would have given government departments more leeway in how they spend their budgets.
Earlier Thursday, Defense Secretary Robert Gates called for the Senate to pass the spending bill because it would allow his department to meet changing priorities in the current year.
Republicans, however, complained the Senate bill would have continued excessive government spending including $8 billion in earmarks, or provisions requested by individual legislators.
"Once the new Congress is sworn in, we'll have a chance to pass a less expensive bill free of this kind of wasteful spending," Senate Minority Leader Mitch McConnell, R-Kentucky, said Thursday. "Until then we need to step back and respect the will of the voters."
In addition, all 12 Republican senators-elect sent a letter to McConnell and Reid, saying they are "united in opposition to the current effort in Congress to pass yet another unseen bill, loaded with wasteful spending."
Two Republican senators, John McCain of Arizona and newcomer Mark Kirk of Illinois, proclaimed victory on the Senate floor shortly after Reid's announcement, drawing angry responses from Democrats.
Sen. Claire McCaskill, D-Missouri, accused McConnell of unfairly characterizing the spending bill as a Democratic proposal when it was compiled by senators from both parties on the Appropriations Committee. McCaskill also criticized McCain and Kirk for their victory proclamation.
Reid said, if you looked up hypocrisy in the dictionary, "under that would be people who ask for earmarks but vote against" in the final bill.
Republicans "hate to vote for them but love to get them," he added.
President Barack Obama had requested almost $1.14 trillion in spending for the 2011 fiscal year, which began October 1 and ends on September 30, 2011.
The resolution passed by the House is $1.089 trillion -- $45.9 billion less, according to House Appropriations Committee Chairman David Obey, D-Wisconsin.
CNN's Alan Silverleib, Ed Hornick, Tom Cohen and Ted Barrett contributed to this report