Europe relies on China for the rare earth elements essential in transition technologies, but it's making a late bid to end dependency.