Workers in foreign countries and spying in those countries are not necessarily related in any way, aside from the occasional discount windfall that states get from assets with the right sense of patriotism, personal weakness, or political alignment.
There isn't really a trade happening there. The Chinese spying hurts everyone who is not a state-owned copycat company, regardless of their country of origin. The American spying hurts everyone who conducts business over the Internet or travels internationally. The ordinary Chinese people and American people get screwed both ways, because they're unimportant nobodies to the superpower state actors. So let's not get all defensive and start pointing fingers at each other, ok?
Neither the companies nor the Chinese engineers profit from this arrangement.