Once signed into law, the legislation will end a partial department shutdown and restore funding to key agencies. But Republicans are unhappy that ICE and Border Patrol have been excluded.