The former intelligence contractor did not let federal intelligence agencies vet his book before it was published in breach of his agreements with the agencies, the judge said.