More than got away with it, actually... they prospered.
There has to be an incentive to not do these things as a government. There is none in the UK.
The only incentive governments ever have to not do bad shit is that the people will hate it so much that the government will wind up with less power than they started with.
But, decisions are ultimately made by individuals or small groups of them who have interest (profit, legacy, etc) in doing what the people wand and what is good for the people.
If enough people in government's personal interest is aligned with that of the people you get more outcomes that are aligned with the people.
Well, that's the trick, isn't it? You have to give people a way to reduce government's power if the government does something the people don't like, but do it in a way that keeps society from flying apart.
The best solution i can think of is constantly seeking to reduce the government and limit it's power, size and responsibilities, always trimming the hedge. I.E. conservatism. Any government fundementally should be trusted and relied upon as little as possible, if you want to prevent abuses.