The more the US races to choke off China’s access to semiconductors, the greater the risks of alienating allies and forcing China – the world’s biggest chip customer and supplier of critical rare earths – to retaliate.