US updates a science and technology pact with China to reflect growing rivalry and security threats