I’m not a lawyer, but the title, if correct, sounds illegal…
I believe it would violate the first amendment by forcing taxpayers to fund a candidate they disagree with.