The legislation ends a partial government shutdown and restores funding to key government agencies. But Republicans are unhappy that ICE and Border Patrol have been excluded.