As the age of artificial intelligence transforms warfare, the Pentagon faces a delicate problem: How does it convince employees of high-tech companies based in the U.S. that Americans are still the good guys, so that they’ll lend their talents to U.S. national security projects?