That distinction is definitely tough to defend. As Judge Berzon's opinion explains at length, it's equally pernicious for both types of employees to solicit such contributions, and since this involves free speech, the First Amendment prohibits this differentiation.
I also couldn't help but take notice of the caption: "Progressive Democrats v. Bonta." Some people might say that's at least facially equivalent to Rob Bonta suing himself. :-)