Former Chester County Judge Michael Cabry has pleaded guilty to charges related to gambling with campaign funds, Pennsylvania Attorney General Josh Shapiro announced Wednesday.