Judge: John Bolton can publish book