So which one you'd rather have spying you, China or US? While it's easy to mock US for doing bad things, at least as European they share a common cultural heritage. And yes, while they spy on their allies they are still allies with many European nations and their military support serves as a core pillar for many European nations' foreign policies.
China on the other hand, isn't allied with any European nations and seems to actively undermine freedom of speech and to suppress its citizens. Social credit score sounds good to you? So in the context of all things, yes US does still have a moral high ground. But I admit they surely could do a better job.