Google has signed a classified deal that allows the US Department of Defense to use its AI models for “any lawful government purpose.”