Another week in Washington comes with another chaotic scramble to prevent a government shutdown.

With a little more than two days to spare before funding lapses for the second time since December, confusion reigned Wednesday. Congress hurried to hash out text for spending legislation, as a few remaining snags held up the release of a final plan.

News outlets say President Donald Trump is expected to sign what lawmakers pass — even as Trump and his administration stress that he wants to see legislation before backing it. On Wednesday, the president said "we'll be looking for landmines" in the form of unwanted proposals once the plan is finished.

"I don't want to see a shutdown. A shutdown would be a terrible thing. ... We're going to look at the legislation when it comes, and I'll make a determination then," Trump told reporters during a meeting with Colombian President Ivan Duque.

A confusing rush to keep the government running looks likely in the coming days. About a quarter of the government shuts down if lawmakers fail to beat a midnight Friday deadline. At stake are the paychecks of about 800,000 government workers already battered from the last funding lapse, along with crucial government services such as food inspections and air traffic control.

While Trump is likely to sign the spending measure, which puts about $1.4 billion toward physical barriers on the U.S.-Mexico barrier, NBC News and other outlets reported, the president has changed his mind in the past. He did so before the start of a record 35-day shutdown during December and January.

As part of this week's tentative deal, lawmakers allocated only a fraction of the $5.7 billion Trump demanded for his proposed border barriers.