Judges have repeatedly ordered bond hearings or release from immigration detention following habeas corpus petitions.