The order comes after lawyers expressed alarm that the US was planning to deport migrants to the North African country "immediately".