That (emulating CCP policies) is exactly what the US is NOT doing. Instead, the US has chosen to surgically target companies from specific countries (in this case, China) in a sensible, reciprocal reaction.
(I see many posters saying the US should pass legislation like the laws that China has, rather than respond in a surgical, targeted way. Doing so would have far more restricting effects.)
When US imposes tariffs on Canada, we expect Canada to impose reciprocal tariffs on the US; these serve to discourage the original action (US-imposed tariffs), and encourage the free flow of trade. Similarly, reciprocal reactions by India and the US serve the exact goal that you mentioned -- leading by example, discouraging other countries from imposing the same restrictions in non-reciprocal ways, and encouraging the free flow of software/information.