(CNN) President Donald Trump signed a short-term funding bill on Thursday to avert a government shutdown hours before funding for the federal government would have run out, according to a White House official.
The move allows lawmakers and Trump to work for another month to come up with a deal on funding the government. The deadline to avoid another government shutdown is now December 20.
Earlier on Thursday, the Senate passed the short-term funding bill by a vote of 74-20. The House had passed the bill earlier in the week.
As of Wednesday night, Senate Republican leaders were still working to relieve objections on their side of the aisle to components of the month-long continuing resolution to keep the government operating past the deadline when funding expires.
The holdup forced Senate leadership to abandon efforts to have a vote on the bill late Wednesday, according to a Senate Democratic leadership aide. An agreement to hold a vote on Thursday was later reached.
"Nothing is easy," Sen. John Thune of South Dakota, the GOP Whip said on Wednesday, before adding that he was hopeful concerns about the bill would resolve as the deadline approaches Thursday and the threat of a shutdown becomes more real.
The push to keep the government funded comes as the House is in the midst of contentious and high-profile public impeachment inquiry hearings as part of an investigation into Trump by House Democrats that has led to an escalation of partisan tensions on Capitol Hill.
Against the backdrop of the impeachment inquiry, lawmakers have not yet reached bipartisan agreement on the 12 regular annual appropriations bills needed to fund the government. The passage of another stop-gap measure will allow for more time to negotiate.
Congress already passed a short-term funding extension earlier in the year -- at the end of September -- that set up the impending funding deadline this week.
A dispute over funding for a wall at the US-Mexico border triggered a partial government shutdown last year that extended into the start of the new, 116th Congress with Democrats refusing to sign off on the President's demand for his signature campaign promise. That shutdown broke the record for the longest government shutdown in US history.
House Majority Leader Steny Hoyer told reporters earlier in the week, "the wall, I think, is the major impediment" to getting funding issues resolved. Hoyer argued that other spending bills are "being held hostage essentially" as a result.
Ahead of the House's passage of its stop-gap bill, Hoyer said, "I hope the Senate will quickly pass it and the President will sign it."
This story has been updated with additional developments Thursday.