A lawyer could be disbarred for lying to a judge, but in practice it is extremely infrequent that lawyers are disbarred, even for relatively severe misconduct. I also personally think that the standards for what constitutes misconduct should be more broad, and should extend to cover bad faith use of the legal system for purposes other than seeking legal rulings, like harassing people or wasting their time or money. The existence of default judgements, where the defendant has to appear and present a defense or be found responsible in even the most flagrantly illegitimate of cases incentivizes lawyers to carry out filings in bad faith.
For example, lawyers in the US routinely file or threaten to file defamation suits in scenarios where the law is clear that no defamation has occurred. I feel that in such situations the most charitable interpretation is that the lawyer is an idiot, and the less charitable interpretation is that the lawyer is a criminal. When a judge considers and ultimately dismisses such a suit, two options present themselves. Either the lawyer is so incompetent as to think that the suit had legitimate grounds, in which case they should lose the ability to file such suits, or the lawyer is maliciously exploiting the legal system for the purpose of harassment, and should similarly lose the ability to file such suits. The fact that judges largely refrain from sanctioning lawyers for even the most severe misconduct results in a world where wealthy individuals are frequently able to use the legal system or the threat of the legal system to harass individuals like journalists into not discussing their activities that are of public interest.
A similar example manifests in patent law, where patent trolls can pursue expensive sham litigation with impunity, to the extent that an entire market exists based on shaking companies down by threatening legal action and offering a settlement for less than the company will have to pay in legal fees to eventually prevail against the sham accusation.