Quebec judge fails in bid to appeal reprimand over comments