Criminals don't listen to what judges say.
So who would expect the NSA, FBI, CIA or any other 3-letter entity to?
The people in these organisations likely start out with a very well defined sense of right and wrong.
Pretty soon they start to play in the grey area where sometimes you need to do some illegal stuff for the common good. This is easy to justify to yourself (a bit like speeding to get to a hospital, or telling tiny white lies to reduce conflict with the missus).
After a while this gets to be normalised and the transgressions get bigger, still justified.
After a few months or years, depending on the person and level of immersion, there comes a total detachment for society. The organisation comes before the public it is supposed to be serving. The organisation, and the people involved, feel they are above the law.
When things have got to the last stage, a judge does not have any chance of reigning them in. The only way to restart is to throw the whole lot overboard and restart. Cancel all their funding and projects. Restart a new organisation, from the ground up and first principles, with none of the same people in play.