Probably nothing can be done to stop it in the short to medium term. I suspect that many years from now historians will look back and see this as just a phase humanity had to go through, kind of like the evolution from monarchy to democracy.
It's clear that the power to know everything about everyone has gone to the heads of the political class so badly that they'll never give it up. They'll always find a justification and any "reasonable compromise" that is arrived at won't be what we had 40-50 years ago (i.e. no total surveillance) even though that seemed to work OK, it'll be "slightly less than totalitarian surveillance, sorta, unless there's a good reason for it".
So for now we're stuck with it. The geek in me wants to believe that what starts with Snowden is an epic and very long struggle to design technology to make it surveillance-proof, which will inevitably result in some kind of (hopefully mostly non-violent) quasi civil war a la the monarchists vs parliamentarians. Governments will fight back hard and eventually the fact that technology needs to be government-proof will become as widely accepted a principle as the free press being government-proof. But it will take a loooooong time. Probably longer than any of us will be alive.
The cynic in me says we're all boned and 1984 has arrived.