You're conflating two different things: publishing classified material, which the DOJ under Obama didn't charge, and a CFAA violation.
Assange is getting charged for a CFAA violation. "Hacking" isn't a great description of what the law forbids. It forbids obtaining information by "intentionally access[ing] a computer without authorization or exceed[ing] authorized access".