The solicitor general contended that a group of migrants had barricaded themselves inside a Texas detention center and threatened to take hostages.