A Pennsylvania county's misbehavior in a dispute over voting machines prompted a stern warning from state justices and an ethics referral to the Pennsylvania Attorney Disciplinary Board.