Judge: Kansas must count disputed votes