Congress is inching closer to ending the Homeland Security shutdown after a late-night deal in the Senate.

Lawmakers pushed it forward early this morning, more than six weeks into the standoff over immigration enforcement. The agreement would reopen most of DHS, but leaves out new funding for ICE and parts of border enforcement.

Republicans say they gave ground without getting the reforms they wanted, while Democrats got limits on enforcement funding. It comes after several failed attempts to break the deadlock. The plan now heads to the House, where the outcome is still up in the air.

In the meantime, some operations have kept running on existing funds. Travelers are also feeling it, with longer lines reported at airports during the shutdown.