While I have some sympathy for the policy makers attempting to do this they do appear to be oblivious that to the outside world, especially their allies, the meta-lesson is any critical industry will eventually be onshored by the printing of hundreds of billions to price you out if necessary. This isn't a recipe for long term peaceful co-operation.
It's ridiculous to criticise China on one hand, and then emulate every move they've made ten/twenty years later.