The measure approved on Friday, known as a continuing resolution, sustains government operations at current funding levels through next Friday. By that point, congressional leaders hope to have passed a spending package that will cover the rest of the fiscal year, which ends Sept. 30.
“A continuing resolution is never anyone’s first choice for funding the government,” said Representative Rodney Frelinghuysen, Republican of New Jersey and the chairman of the House Appropriations Committee. “However, this is our best path forward.”
Democrats largely went along with the stopgap measure, though not without registering their complaints about the process.
“I think it’s sad that we’re here at the last minute trying to kick the can down the road,” said Representative Jim McGovern, Democrat of Massachusetts. “This could have been avoided.”
The House approved the spending measure by a vote of 382 to 30, and the Senate gave its approval with a voice vote. Congressional leaders expressed optimism that an agreement on the longer-term spending package was within reach.
Some significant obstacles have already been removed from the path of the lawmakers hammering out the spending package — which also minimized the risk of an impasse that could have led to a shutdown this weekend.
For one thing, Mr. Trump backed down from his demand that money be included for the wall he wants to build along the border with Mexico.
The White House also said it would continue to make subsidy payments to insurers under the Affordable Care Act. That assurance satisfied Democrats who wanted the spending agreement to ensure that the subsidies — which lower deductibles and other out-of-pocket costs for low-income consumers — would continue to be funded.
The cordial, bipartisan work on the spending package contrasted with the fierce fighting over health care that shows no sign of abating.
Final negotiations on the long-term spending package played out this week as House Republican leaders tried to round up the necessary votes to move ahead on the repeal of the Affordable Care Act.
Some White House officials had hoped a vote on a revised House bill to repeal the health law would take place before Saturday — a step that, if successful, would have showed that Mr. Trump was making progress on a central campaign promise.
“I would love to have had the vote in the first 100 days,” said Representative Mark Meadows, Republican of North Carolina and the chairman of the conservative House Freedom Caucus.
But Mr. Meadows noted that it had taken much longer to put the Affordable Care Act in place. “If it takes another couple of days, then so be it,” he said of this year’s repeal bill, adding that he would be “extremely…