Senate and House Republicans have struck a deal to reopen the Department of Homeland Security without a Democratic filibuster.