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 and it is unclear whether President Donald Trump will back the agreement. He is now addressing a political rally in Texas.
Talks had previously stalled on the detention of undocumented immigrants and funding for Mr Trump’s border wall.
A deal must be reached by Friday when funding will run out for some agencies.
The previous shutdown lasted 35 days and was the longest in US history.
The shutdown’s cost to the US economy was estimated at $11bn (£8.5bn).
What is known about the deal?
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.
Reports say the deal includes $1.375bn (£1.07bn) in funding for physical barriers – much less than the $5.7bn President Trump has been demanding.
Democrats were also demanding to limit the number of undocumented migrants already in the US who can be detained by Immigration and Customs Enforcement (ICE).
It was agreed to bring down that number to 40,250 from the current 49,057, reports say.
Why is there the risk of another shutdown?
On 25 January, President Trump agreed to a three-week spending deal to end the shutdown and allow Congress to reach an agreement.
That funding ends at midnight on Friday.
Mr Trump made building a wall on the border with Mexico one of his key promises in the 2016 campaign.
The president has backed away from calls to make Mexico pay for a concrete wall but during his State of the Union speech last Tuesday – delayed because of the previous shutdown – he insisted on a “smart, strategic, see-through steel barrier”.
He has previously threatened to declare a national emergency and fund the wall without Congress. But this idea is disliked even by some fellow Republicans, and Democrats are likely to challenge it in the courts.