Senate Democrats said Thursday they had enough votes to block a GOP short-term budget deal — increasing the likelihood of a government shutdown as Friday’s midnight deadline loomed.

A senior Senate Democratic aide told the Washington Post it was “almost certain” that a spending extension does not have the votes to pass the upper chamber.

The Democrats want the bill to include relief for the Dreamers — immigrants brought here illegally as children and who were protected by the Deferred Action for Childhood Arrivals program.

But President Trump and immigration hardliners in Congress want to deal with DACA at a later date.

With the 49-member Democratic caucus standing firm and some Republican senators also opposing the short-term spending plan for various reasons, its chances looked dim.

Senate Majority Leader Mitch McConnell (R-Kentucky) would have to get at least 11 Democratic votes to reach the 60 needed to avoid a shutdown by the deadline.

“We should all plan to stay through this weekend if Senate Democrats follow through and are willing to shut down the government and the Children’s Health Insurance Program because they have yet to conclude a deal on DACA,” McConnell wrote in an email to his caucus.

“This is an irresponsible position to take, as everything from pay for our military to processing Social Security checks will be affected. I hope not a single Republican is inclined to join them.”

Trump also threw a wrench into the negotiations Thursday morning by tweeting that the Children’s Health Insurance Program should not be part of a short-term deal, putting him at odds with his own administration’s stated policy.

Trump has insisted that if there is a shutdown, Democrats would be to blame, even though the GOP controls Congress and the presidency.

With Post wires