The Senate had good news and bad news for the 800,000 federal employees who won’t get paychecks on Friday because of the partial government shutdown: Yes, they will be paid, but no, not until there’s a deal to restore funding.

The mixed news came Thursday afternoon, when senators voted unanimously to authorize the eventual post-shutdown funding of back pay.

Once the House passes its own bill, President Trump will sign it, Senate Majority Leader Mitch McConnell said in calling the measure to a voice vote.

“I had an opportunity to talk to President Trump a few moments ago, and wanted to indicate to our colleagues that he will sign the bill that we’ve been discussing here to guarantee that government workers who’ve been displaced as a result of the shutdown will ultimately be compensated,” McConnell said.

“And so I want to ease their anxiety about that particular possibility.”

Funding was cut to about 25 percent of the government on Dec. 22, when Democrats refused to include $5.7 billion for Trump’s border wall in a spending bill.

On Saturday, the shutdown will hit a record 22 days — surpassing the previous 21-day record set in 1995-96.