The Defense Department said Anthropic posed a threat to national security. But a federal judge found the designation was meant to ‘punish and retaliate’ against the company for criticizing military use of its Claude AI models.