OpenAI reached a deal with the US Department of Defense to deploy AI models in classified networks shortly after Washington ordered agencies to cease using Anthropic technology.