Agree with you and the judge. The book is already out there.
I was thinking about the profits. If he learns that the government was dragging its feet for political purposes, which have nothing to do with national security and everything to do with censorship, then he won't claim the profits on behalf of the government.
But if he sees that Bolton has revealed a genuine national secret, then he probably will.
Since Barr and Trump are involved, I assume they are using the system for corrupt purposes. But the judge may feel he cannot assume that unless it is proven in this case.