Illegal spying was widely known about already. What he did was intended to hurt the USA, not expose anything. Much of what he released was already known about (Guardian drops). Vault 7 crippled the NSA. It put the USA in danger. At the same time, he helped Obama/Brennan build the HAMMER and made it virtually impossible for NSA database access to be traced back.  He had no good intentions.