The Senate voted to separate funding for DHS after reaching a White House deal.