SCOTUS rules on retaining courts' ability to review election plans