For purposes of this section, the term charitable contribution means a contribution or gift to or for the use of
(1) A State, a possession of the United States, or any political subdivision of any of the foregoing, or the United States or the District of Columbia, but only if the contribution or gift is made for exclusively public purposes.
But it’s not a contribution or gift if the state decides the amount and forces you to pay it.