Attacks on the legal profession undermine the rule of law, says Law Society