A federal appeals panel on Thursday reversed a lower court decision that released Mahmoud Khalil from an immigration jail, bringing the government one step closer to detaining and ultimately deporting the Palestinian activist.