China has a luxury of being able to not really care about the cost when it comes to what they view as a strategic advantage.
This option is available to any sovereign country.
In fact, it is what most European countries used to do for their strategic industries.