This has been planned since Trump's first term, so it's definitely not opportunism, but at the same time I think you're right that there's a personal element.
But it's overwhelmed by the geopolitics. China invests in minerals all over the world, but this is literally America's backyard, and America does not want to cede control.