Democrats and Republicans have reached an agreement in principle over border security to fund the US government and avert another partial shutdown.
Lawmakers told reporters the deal had been struck in a closed-door meeting on Capitol Hill on Monday night.
Talks had previously stalled on the detention of undocumented immigrants and funding for President Donald Trump's promised border wall.
A deal must be reached by Friday when funding will run out for some agencies.