Donald Trump faces a mounting battle with China after an AI breakthrough in the country threatened to upend US dominance of the technology.