A federal lawsuit has been filed over a South Carolina Supreme Court decision that officials say could keep hundreds of candidates from appearing on ballots for the state's June 12 primaries.