With culinary diplomacy on the menu and tech titans at the table, Xi spoke of ‘a new historical juncture’ for ties and Trump talked up trade