SCOTUS agrees to hear case about elections