Prosecutors who missed charging opportunities, a loosely crafted plea agreement and defense lawyers’ excavation of a little-known case enabled former Judge Jack T. Camp Jr. to walk away with a misdemeanor even though he pleaded to a felony after the FBI snared him in a cocaine deal.