The late-night vote is a step towards bringing the 40-day partial shutdown - and long security lines at US airports - to an end.

The Department of Homeland Security has been shut down since February over Democratic concerns about its immigration enforcement policies.

The Senate reached an agreement to end the shutdown of the Department of Homeland Security. The deal still has to pass the House of Representatives.