The U.S. and China have had an increasingly complicated relationship over the past few years, regarding trade, technology and national security.