I cannot, for the life of me, find the article that describes how they got away with it. Apparently, someone filed for some legal protection on behalf of wikileaks that would allow them to publish something like that book under the protective veil of journalism. It was a recent filing that seemed almost as if someone in the White House was involved, and that Trump's legal team "trying to stop it" was nothing more than a charade.
Again, 4D chess (laser pointer, indeed).