Supreme Court upholds party spending limits