I think "rule of law" isn't an apt phrase. The term is mostly defined procedurally, and not based on if the law itself is unjust. (There are alternative definitions, but this is the most common.)
The relevant law here is the Espionage Act of 1917, which has no provision for intent, no need to show that there was specific harm, and no balancing of public good with the amount of harm caused.
Quoting Wikipedia on "Rule of Law": Upholding the rule of law can sometimes require the punishment of those who commit offenses that are justifiable under natural law but not statutory law.
The relevant law here is the Espionage Act of 1917, which has no provision for intent, no need to show that there was specific harm, and no balancing of public good with the amount of harm caused.
Quoting Wikipedia on "Rule of Law": Upholding the rule of law can sometimes require the punishment of those who commit offenses that are justifiable under natural law but not statutory law.