Absolutely the same logic could be used to explain the actions he revealed, that is exactly the problem.
We are being forced to choose between realities.
Either his action is a noble one born of patriotism, or those that he revealed are.
Both sides are claiming to be right, noble and patriotic, and both sides see themselves as acting appropriately.
The question is which reality do we want to be true? which side do we want to be associated with and to support?
Pick your side, and see where that decision takes you.
There are no objective realities here. Just a personal decision regarding the reality we wish to support, encourage and stand with.