Judge orders head of ICE to explain agency’s handling of bond hearings for immigrants it has detained.