Two decades of self-reliance have left Beijing less vulnerable to US pressure — and more capable of shaping global trade.