It's state policy on both sides.
Cutting China and particularly Huawei off from access to our tech has forced them to develop capacity domestically, at a state and corporate level. Good for tech in an abstract space race kind of way, but pretty debatable as a geopolitical move.