The messages had "sexual innuendo and personally invasive comments," according to the ruling.