As far as I can tell he did it exactly right. Tried to escalate but not the point of causing trouble and getting fired. Took a bunch of documents and released them not straight out, but to journalists who had an opportunity to redact things that might directly endanger lives (like names of agents, etc).
> do we want to encourage this type of thing?
So long as the government tries to do things in secret that are illegal, yes, we do want to encourage this type of thing. The alternative is that eventually you have "turn key tyranny" where the apparatus is also used to suppress dissent and the government REALLY takes over.
Whistleblowing?