The US is in a fierce contest with China to secure minerals crucial in the manufacturing of everything from iPhones to cars.