The president’s comments comes after China and the US agreed a trade war truce at the G20 summit.