Government lawyer says ‘this system sucks’ as federal judge says ICE is detaining too many people to keep up their cases