Hawaii I think has passed a law to remove the power of corporations to spend on political campaigns. I know that Wyoming is another state working on or might have passed a similar law.
There’s a difference between the right and the power to do something. The constitution gives states the power to define what corporations have themselves the power to do.
States can pull the license to operate on corporations in their domain