Anthropic’s Claude AI systems have become a crucial tool for the military despite the company’s clashes with the Defense Department.