A Supreme Court judge who assaulted and emotionally abused his then-partner has been sentenced.