Judge upholds disqualification of 2 sheriff candidates