AI companies have transitioned from opposing the use of artificial intelligence by militaries to partnering with the U.S. military.