Here are some photos Reuters' Kevin Lamarque captured of Donald Trump signing the bill.
Here are some photos Reuters' Kevin Lamarque captured of Donald Trump signing the bill.
Democratic Congressman Jim McGovern from Massachusetts said the bill "leaves families twisting in the wind with zero guarantee there will ever, ever be a vote to extend tax credits to help everyday people pay for their health care".
Democratic leader Hakeem Jeffries said Democrats would not give up on the subsidy extension even if the vote did not go their way.
"This fight is not over," he said. "We're just getting started."
Trump says the country "has never been in better shape" just before signing the bill.
"It's a great day," he says.
Some analysts have said the US economy is showing signs of stress with the country's central bank, the Fed, pumping cash into Wall St last week.
For many Americans the cost of living is high at the moment.
And jobs have been growing slower than expected.
The funding bill reopens the US government, ending the longest shutdown in US history.
The group of Democrats was convinced to concede support for the bill's passage to end the shutdown after Republican senators agreed to hold a vote at a later date — believed to be in December — on expiring Affordable Care Act (also known as Obamacare) tax credits that have made private health insurance less costly for millions of Americans.
The president, continuing to criticise Democrats over the shutdown, told voters to remember it during the midterm elections to re-elect members of Congress in November next year.
The Republicans currently hold narrow control of the House of Representatives.
"I just want to tell the American people, you should not forget this when we come up to the midterms," he says.
Roughly 6 in 10 Americans say Trump and Republicans in Congress have "a great deal" or "quite a bit" of responsibility for the shutdown, while 54% say the same about Democrats in Congress, according to the poll from the Associated Press-NORC Center for Public Affairs Research.
At least three-quarters of Americans believe each deserves at least a "moderate" share of blame, underscoring that no one was successfully evading responsibility.
Both parties looked to the November 4 elections in Virginia, New Jersey and elsewhere for signs of how the shutdown was influencing public opinion.
Democrats took comfort in their overwhelming successes.
Trump called it a "big factor, negative" for Republicans. But it did not change the GOP's stance on negotiating.
With AP
Trump said the shutdown, entering its 43rd day, has "inflicted massive harm", once again blaming the Democrats.
"I think we can all agree that the government should never be shut down again," he said.
"So, with my signature, the federal government will now resume normal operations."
Almost no one is happy with the final result.
Democrats didn't get the health insurance provisions they wanted added to the spending deal.
And Republicans, who control the levers of power in Washington, didn't escape blame, according to polls and some state and local elections that went poorly for them.
The fallout of the shutdown landed on millions of Americans, including federal workers who went without paychecks and airline passengers who had their trips delayed or canceled.
An interruption in nutrition assistance programs contributed to long lines at food banks and added emotional distress going into the holiday season.
The agreement includes bipartisan bills worked out by the Senate Appropriations Committee to fund parts of government — food aid, veterans programs and the legislative branch, among other things.
All other funding would be extended until the end of January, giving lawmakers more than two months to finish additional spending bills.
Reporting with AP
Trump has thanked a list of Republican leaders, including House Speaker Mike Johnson and US Senate Majority Leader John Thune.
"(They) frankly spent a long time in Washington getting this thing to go away," he said.
"I also want to thank the broad coalition of Americans that stood with us in this fight to reopen government."
Trump told reporters that Republicans "never wanted" a government shutdown.
"(We) voted 15 times for a clean continuation of funding," he said.
"Yet the extremists in the other party insisted on creating the longest government shutdown in American history.
"And they did it purely for political reasons."
The Republicans could have ended the shutdown at any time by agreeing to the Democrats' wish to extend an enhanced tax credit that expires at the end of the year, which lowers the cost of health coverage obtained through Obama Care (the Affordable Care Act).
Trump says the passing of today's bill sends a clear message that "we will never give in to extortion" by the Democrats.
"Because that's what it was," he said.
"They tried to extort our country. In just a moment, I'll sign a bill exactly like we asked the Democrats to send us all along."
The legislation is the result of a deal reached by eight senators who broke ranks with the Democrats after reaching the conclusion that Republicans would not bend on using a government-funding bill to extend the health-care tax credits.
The compromise funds three annual spending bills and extends the rest of the government funding through January 30.
Republicans promised to hold a vote by mid-December to extend the health care subsidies, but there is no guarantee of success.
The bill includes a reversal of the firing of federal workers by the Trump administration since the shutdown began.
It also protects federal workers against further layoffs through January and guarantees they are paid once the shutdown is over.
The bill for the Agriculture Department means people who rely on key food assistance programs will see those benefits funded without threat of interruption through the rest of the budget year.
With AP
US President Donald Trump is signing a bill to end the longest government shutdown in history.
You can follow live here.