At the end of a two-day summit in Beijing, Donald Trump and the United States boast of "fantastic" trade agreements. Yet Xi Jinping has been able to take advantage of US weakness, given his stalemate in the Middle East war and his growing unpopularity on the international stage, to advance China's interests.