Google are having zero influence on China's totalitarian government, and there is zero hope that they could have any such influence. It is either do what the CCP wants, when they want it, or Google gets booted anyway in favor of the locals.
Most likely, China is simply using them to build and steal the best surveillance technology faster. The better result from a human rights POV would be to have less-competent locals build it.
The sole exception would be if Google is working very tightly with NSA, CIA, etc. and actually installing a massive US spy network within China. While this is a possibility we wouldn't know about, it's unlikely given Google's culture.
So, no, this is not even close to being in the interests of the US or it's citizens (a few major Alphabet shareholders excepted).