A plurality of Americans say they would blame Democrats if the government shuts down, according to a new poll.

Thirty-one percent of Americans would blame Democrats in Congress, while 26 percent said they would blame congressional Republicans, a CNN poll showed Friday.

Meanwhile, only 21 percent of Americans would hold President Trump responsible, and 10 percent would cast blame on all three.

The House passed a stopgap spending measure to keep the government open Thursday night, but the possibility of a government shutdown remains in the hands of the Senate, which has until midnight to agree on a spending deal before federal funding runs out.

Democrats have pushed back on the spending bill, because they are trying to secure a deal to protect "Dreamers" covered by the Deferred Action for Childhood Arrivals program, which prevents those who came to the U.S. illegally as children from being deported.

However, most Americans, 56 percent, would prefer a budget agreement to prevent a shutdown rather than continuing the DACA program, the poll revealed. Thirty-four percent of Americans said they would pick DACA over a shutdown.

Even so, DACA has widespread support, with 84 percent of Americans saying they would like to see the program continue. The program has bipartisan support, with 72 percent of Republicans and 96 percent of Democrats on board to keep it.

Lawmakers are trying to agree on a deal that would protect DACA recipients, as the program is set to expire March 5.