Note that the earning are protected mainly because you invested the time , and not because of some union.
The Achilles heel of those professions, is that the body of knowledge is constant, with very long half life. But this also make it ready for automation.
With AI, the destruction of those professions will be quick, as they will get destroy from the bottom. I.e. Even if AI make existing lawyers twice as productive, it would mean that you would need half the lawyers. If AI will make them 4x productive, you would need 25% of lawyers, etc.