John Bolton, a former national security adviser to US President Donald Trump who has since become one of his most vocal critics, pleaded guilty Friday to withholding classified documents related to national defence.