The legal battle has national repercussions as the number of ICE-held migrants reaches its highest level in five years.