The US and China have reached a trade deal to ease tensions by resuming chip exports and boosting key commodity trade.