Democrats and Republicans have reached an agreement in principle over border security to fund the US government and avert another partial shutdown.
Lawmakers said the deal had been struck in a closed-door meeting in Washington.
No details have been released. Talks had stalled on the detention of undocumented migrants and funding for President Donald Trump’s border wall.
Speaking late on Monday, he did not say whether he would back the deal. “We’re building the wall anyway,” he said.
He told supporters in El Paso, Texas, that he had had no time to study the agreement, but stressed that he would “never sign a bill that forces the mass release of violent criminals”.
A bill must be approved by Friday when funding runs out for some federal agencies. The previous shutdown – the longest in US history – lasted 35 days.
The shutdown’s cost to the US economy was estimated at $11bn (£8.5bn).
It was clinched on Monday evening – after several hours of talks between Democratic and Republican negotiators.
Emerging from the talks, Rep Senator Richard Shelby said all outstanding issues had been resolved.
“We got an agreement on all of it,” he said. He added that staff members would work out the details later in the week.