The US military is using AI tools during Iran war. But Pentagon’s collaboration with tech companies goes back decades.