Caperton v. A. T. Massey Coal, which is now before the Supreme Court, could change the way cases are heard in the 39 states that elect some of their judges.