Congressional negotiators resolved policy disputes to reach a deal for a $1.1 trillion spending bill on Tuesday but still expected to need a stop-gap extension to avoid a U.S. government shutdown at midnight on Thursday.

House of Representatives Republicans were preparing to pass a short-term funding extension of one to two days to allow the Senate more time to clear procedural hurdles that could drag final passage past the deadline.

The snags added some drama to a spending bill that appeared to be cruising toward passage, despite demands from conservative Republicans to withhold spending from President Barack Obama's immigration order, which would allow millions of undocumented immigrants to stay and work in the United States.