Judge who swore at abusive defendant cleared of misconduct