Mr. Trump has softened his rhetoric against China's trade practices as Beijing has intervened in foreign exchange markets to prop up the value of its yuan, and as he looks to China for help dealing with rising tension on the Korean peninsula.