Economic warfare (which is what the sanctions against Huawei are) is an instrument of political warfare- this worked in the past with tech embargoes to the eastern bloc countries and Russia. But China in the here and now is a different story - there are technology areas they lead in, such as mobile infrastructure, which they can leverage in such a conflict - in the end the consumers will pay the price in the form of slower adoption and higher prices to achieve these political aims.
Are such embargoes preferable to fostering economic interdependence as a way to reduce military conflicts? Perhaps, but that requires trust between the political blocs - something in short supply at this point in time.