(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.

Read More