Sen. Lindsey Graham (R-SC) speaks to members of the media in the basement of the U.S. Capitol prior to a Senate Republican Policy Luncheon January 17, 2018 in Washington, DC.

President Donald Trump supports Republicans' short-term spending bill and will pin the blame on Democrats if it fails to pass, press secretary Sarah Sanders said Wednesday.

Democrats have threatened to oppose a continuing resolution to fund the government if they cannot also pass a plan to protect hundreds of thousands of young undocumented immigrants.

But the White House may have blame to put on some of the majority Republicans, too. Sen. Lindsey Graham, R-S.C., said Wednesday that he is against a short-term funding measure.

Sanders said the White House seeks two-year spending legislation but would prefer a stop-gap measure to a government shutdown.

"The president certainly doesn't want a shutdown, and if it happens I think you only have one place to look — and that's the Democrats," she told reporters on Wednesday.

If Congress cannot pass a funding bill by the end of Friday, parts of the government will run out of money. Republicans control the House, Senate and White House and can pass a funding bill with only GOP votes in the House. A funding plan will need some Democratic support to pass the Senate.

Senate Majority Leader Mitch McConnell, R-Ky., said he expects the Senate to take up the continuing resolution as soon as the House can approve it. He said he thinks the Senate "has a good chance of passing it," especially because it reauthorizes the Children's Health Insurance Program for six years, a Democratic priority.

Even some Republicans have threatened to vote against it, hurting its chances of passing this week. Graham said Wednesday that he would vote "no" on the measure, arguing that Congress has strung together too many short-term funding bills, according to NBC News.

"We've just got to let folks in this body know enough is enough," he said.

The bill introduced by House Republicans would extend government funding through Feb. 16. It would reauthorize CHIP for six years and delay some Affordable Care Act taxes.

While Democrats have made extending CHIP a priority, the GOP does not plan to move to pass a bill to shield the immigrants protected by the Obama-era Deferred Action for Childhood Arrivals. Trump ended the program in September with a six-month delay, and those immigrants could start to face deportation after March 5.

Congressional leaders started to dole out blame earlier Wednesday. Senate Minority Leader Chuck Schumer, D-N.Y., argued that a shutdown "will fall squarely on the majority leader's shoulders and the president's shoulders."

McConnell suggested Wednesday that Democrats were "manufacturing a crisis" on immigration before the March deadline. Ryan accused them of playing politics with immigration.

Bipartisan senators reached a deal last week on protecting the young immigrants, increasing border security funding and revising extended family migration rules and the visa "lottery" system. Trump rejected the plan when they presented it to him.