The judge, Paula Xinis, said some legal safeguard was needed because the Trump administration had already shown in this and other deportation cases that it could not be trusted.
The court found that Defense Secretary Lloyd J. Austin III had the authority to invalidate a contract reached between the accused mastermind and a Pentagon official.