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.