Supreme Court rejects legal theory that could have transformed US elections, upholds NC ruling