Frankly, hundreds if not thousands of people within the NSA deserve to be charged with treason. I would be shocked if this actually happened, though.
When did Snowden try to stop phone metadata collection from within?
You can invoke your constitutional rights as a citizen,but you don't get to enforce it on behalf of somebody else, nor do you as an individual, decide what action constitutes a violation.
CIA, NSA, Senators, all take this oath: “I, [name], do solemnly swear (or affirm) that I will support and defend the Constitution of the United States against all enemies, foreign and domestic; that I will bear true faith and allegiance to the same; that I take this obligation freely, without any mental reservation or purpose of evasion; and that I will well and faithfully discharge the duties of the office on which I am about to enter. So help me God.”
This lawsuit is not actually about publishing classified material, but about not giving the NSA a chance to read his book before it was published. Since that’s a contract interpretation issue, and since there’s a law specifically making this contract legal, and since it’s a civil lawsuit (e.g., he can’t go to jail because of this particular lawsuit), I believe the government has a very strong leg to stand on.
I’m not saying this is what the law should allow. But I don’t expect the court to rule this law unconstitutional.