The Department of Homeland Security is gearing up to shut down. But the immigration enforcement division at the center of the controversy won't stop operating.

Lawmakers have only a matter of days to stave off a shutdown of the much-scrutinized agency – though ICE would continue to operate.

The Senate on Thursday failed to advance a bill to fund the Department of Homeland Security amid scrutiny of ICE and CBP tactics.