Court rules against man who assaulted his attorney in court