(CNN) President Donald Trump took to Twitter on Friday morning to express his displeasure with Senate Democrats with hours to go before the government potentially shuts down.

"Government Funding Bill past last night in the House of Representatives," Trump wrote. "Now Democrats are needed if it is to pass in the Senate - but they want illegal immigration and weak borders. Shutdown coming? We need more Republican victories in 2018!"

Government Funding Bill past last night in the House of Representatives. Now Democrats are needed if it is to pass in the Senate - but they want illegal immigration and weak borders. Shutdown coming? We need more Republican victories in 2018! — Donald J. Trump (@realDonaldTrump) January 19, 2018

The government is set to run out of funding at midnight Friday. House Republicans passed a continuing resolution Thursday evening to fund the government, but the stopgap spending measure's path in the Senate as that deadline looms is unclear. The legislation needs 60 votes to pass the chamber to break a filibuster, meaning Republican leaders could need as many a dozen Democrats or more to vote in its favor. Several Democrats have already announced their opposition to the bill.

The President was scheduled to travel to Florida on Friday evening to spend the weekend at Mar-a-Lago on the one-year anniversary of his Inauguration, but a White House spokesperson told CNN Friday morning that the President will not travel until a bill to fund the government is passed. The decision was discussed at a morning staff meeting, a senior White House official said.

"He can't go until it's done," the official said.

Read More