Lawyer for prime minister's son says court erred in characterizing him as a 'racist' and 'harasser'