South Carolina's highest court says dozens of candidates cannot appear on the state's primary ballots because of missing paperwork.