The judge ruled the government kept troops deployed in Los Angeles illegally.