A writer for a conservative media outlet has pleaded guilty to joining a mob's attack on the U.S. Capitol nearly years ago.