The IRS did nothing wrong here, and it certainly is not an example of the IRS penalizing people for social infractions. As with any movement with lots of money and momentum and rapidly gaining popularity, there were a lot of fraudsters capitalizing on the Tea Party movement's name and engaging in shady tax dodging practices. The IRS was correct to subject them to increased scrutiny.
In terms of the facts involved, this has nothing to do with China's social credit score. Note that I am strictly talking about the facts involved, not the political fallout and usual bloviating.