Appeals court rejects judicial elections challenge