Judge bans deploying troops