China weaponised its chokehold on critical minerals earlier this year as its trade spat with the US ramped up.