District courts have dismissed the administration’s efforts to detain virtually all undocumented immigrants without a bond hearing while they await deportation proceedings.