The Justice Department asked the court to block a judge’s ruling that halted the deployment of troops.