A judge described the man’s remark as “despicable” and an aggravating factor in the case.