The Pentagon has released secured versions of ChatGPT and Grok for use by its civilian and military staff.