Appeals court restores Minn. judicial election rules