Foreign adversaries have been illegally accessing American AI systems to train competing technology, and selling copycat versions at a lower price.