Beijing’s success in snarling supply chains with rare earths has shifted the balance of power in trade talks