At a routine check-in, ICE detained an Egyptian asylum seeker who was doing “everything he was supposed to do,” a federal judge said.