A federal appeals court has ruled in a partisan dispute over which political party's candidates are placed first on Florida election ballots.