China and the United States agreed to extend a trade-war truce by two months to January 10, as President Xi Jinping arrived in Washington for a summit with US President Donald Trump.