Lawyers can speak and vote and petition with respect to public issues. Even if those views are directly contrary to the interests of a current (or former) client.
And when they're sued for doing so, they can file an anti-SLAPP motion, get the lawsuit dismissed, and recover their fees.