Congressional leaders got behind a short-term measure to fund the government Wednesday as an impasse over President Donald Trump's border wall threatens a partial government shutdown.

Still, the president gave no indication whether he would sign it as a funding deadline loomed.

The so-called continuing resolution would fund the government through Feb. 8, Senate Majority Leader Mitch McConnell announced. The Senate will take up the measure later Wednesday, the Kentucky Republican said. Lawmakers need to pass spending bills by midnight Friday to avoid a partial shutdown. The plan would push the ongoing debate over immigration and border security into next year, when Democrats will hold control of the House and Nancy Pelosi will likely be speaker.

"We need the government to remain open for the American people," McConnell said on the Senate floor. He contended that Democrats have not taken border security seriously enough, saying they had an "allergy to sensible immigration policies."

Senate Democrats will back it, Senate Minority Leader Chuck Schumer said Wednesday.

"We would have preferred one of our two options, but I'm glad the leader thinks the government should not shut down over the president's demand for a wall, and Democrats will support this CR," the New York Democrat said on the Senate floor. Democratic leaders offered two separate proposals to fund the government for a longer period, but Trump has not accepted them.

In a statement, Pelosi lamented a "missed opportunity to pass full-year funding bills." However, she said Democrats "will support this continuing resolution." Senate Republicans need nine Democratic votes to reach the 60-vote threshold to pass spending bills. House Republicans do not need Democratic support to approve the legislation.

A senior administration official told CNBC on Wednesday that the White House would "take a look" once Congress passes a plan. On Tuesday, White House press secretary Sarah Huckabee Sanders said the president would want to see what Congress passes before he decides whether to sign it. Last week, Trump said he would be "proud" to shut down the government over the border wall.