Lawyers are not allowed to break attorney client confidentiality. The lawyer who did so in such a serious case would end up in serious trouble. The state bar would file a complaint against the attorney. There would likely be a hearing. The attorney would be punished. The punishment could range from a slap on the wrist to disbarment (loss of license.) I wouldn’t be too surprised if in such a blatant case the lawyer received a punishment on the higher level of the scale. The state bars tend to punish lawyers who harm their clients very severely.