Attorney: Judge who berated domestic violence victim broke the law