High court leaves mail-ballot security rule frozen for midterms