As Donald Trump surrenders America’s global commitments, Xi Jinping is learning to pick up the pieces.