OpenAI's willingness to work with the Pentagon following Anthropic's public repudiation meant big gains for Claude this year.