WASHINGTON (AP) -- Drained of much of its vitriol over the budget, Congress is poised to adopt a $1.1 trillion package financing federal agencies this year, a bipartisan compromise that all but banishes the specter of an election-year government shutdown.
The Democratic-controlled Senate planned to give final congressional approval to the immense spending measure, possibly as early as Thursday. The Republican-run House passed the package Wednesday in a lopsided 359-67 vote that underscored how both parties could claim wins in the measure - and how both saw deep perils in fighting over it.
"Not everyone will like everything in this bill," said Rep. Hal Rogers, R-Ky., the House Appropriations Committee chairman. Rogers and his Senate counterpart, Sen. Barbara Mikulski, D-Md., were the chief authors. "That's the nature of compromise."
The legislation is a line-by-line follow-up to the budget compromise the two parties pushed through Congress in December that set overall spending limits for the next two years.
The bill lawmakers were considering this week finances federal agencies through September. With the November congressional elections coming just weeks later, Congress is all but sure to provide more money later to avoid an election-eve budget clash.
The legislation increases agency budgets by $26 billion over last year's total. But it still leaves them $31 billion below where last year's spending would have been if not for sequestration - budget-wide cuts triggered after lawmakers failed to agree to deficit-cutting savings.
The measure let Republicans claim they have now restrained agency spending for four straight years. They won cuts to the Internal Revenue Service and Transportation Security Administration and foreign aid, restricted spending to implement President Barack Obama's health care and financial regulation overhauls, and won renewal of provisions limiting federal assistance for abortions.
"Today the House came together to keep the government open while further reining in its out-of-control spending," House Speaker John Boehner, R-Ohio, said.
Democrats touted extra spending for Head Start preschool programs, food aid for poor pregnant women and biomedical research, and there was more money for the FBI, NASA and the border patrol as well. Democrats claimed victories in protecting a requirement that some gun dealers report sales to the same buyer of multiple firearms and in blocking a GOP effort to curb federal regulation of utilities' greenhouse gas emissions.
Even so, many Democrats voted reluctantly for the measure, unhappy that it didn't include more for the Environmental Protection Agency and federal aid for school districts and handicapped students.
"We endanger our families and our future by shortchanging these programs," Rep. Rosa DeLauro, D-Conn., said.
Just as important to many lawmakers was the bill's signal to voters that members of Congress actually can run the country. The past two years have featured repeated standoffs over deficit reduction, raising the federal debt limit and other budget issues that have soured voters, making lawmakers reluctant to incense them further.
Passage of the legislation sends a positive signal to "all those ankle-biters and naysayers who say we can't get anything done," Rep. Jim Moran, D-Va., said.
The measure also lets legislators put budget battles behind them and turn to campaign-season themes: for the GOP, Obama's health care law, and for Democrats, boosting the incomes of low-earners and the middle class.
In the House, 64 of the 67 "no" votes came from Republicans, including many of the chamber's most conservative members.
Among them was Rep. Raul Labrador, R-Idaho, who complained that the measure represented "Washington at its worst - a 1,582-page bill stuffed with pork, ineffective programs and giveaways, being rushed through Congress without proper review."
The bill's authors unveiled the measure Monday night.
The legislation erases cuts Congress enacted last year in annual inflation increases in benefits for wounded military personnel who retire early and their survivors. Those cuts had drawn howls from veterans organizations.
The bill also blocks the government from enforcing regulations aimed at weaning consumers from today's widely used but energy-eating incandescent light bulbs, and gives federal workers a 1 percent raise, their first in four years.
It prevents the post office from ending Saturday deliveries to close its huge budget gap and bars the administration from transferring terrorist suspects held at the Guantanamo Bay, Cuba, detention center to U.S. prisons.
Of the measure's $1.1 trillion, $521 billion is for defense and $492 billion is for nondefense programs. In addition, the bill provides $92 billion for military
action overseas, mostly in Afghanistan, and $7 billion for natural disasters.
For procedural reasons that will let the bill move faster through the Senate, House leaders attached it to an unrelated measure, the Space Launch Liability Indemnity Extension Act.
"No wonder the American people think Congress is living on another planet," Rep. Jim McGovern, D-Mass., said.
To give the Senate time to debate the spending measure, Obama signed a measure that Congress sent him financing federal agencies through Saturday. An earlier temporary spending measure expired Thursday morning.
Associated Press writer Andrew Taylor contributed to this report.