A Marine who posted videos on social media criticizing top military leaders’ handling of the US withdrawal from Afghanistan pleaded guilty to six charges in a military court at Camp Lejeune, in North Carolina, on Thursday.