In the Tech War with China, the U.S. Is Finding Friends