The judge described messages sent by Ryan Shepherd as appalling and misogynistic