Typically, U.S. states coordinate their measures with federal sanctions on Iran.
Check this out:

While the United States and Iran edge closer to a nuclear deal, nearly two dozen U.S. states are imposing their own sanctions against Tehran – a move some say could derail fragile talks between the two countries.

The states, though, say they aren’t budging. In fact, Kansas and Mississippi are even considering adding more sanctions.

Several states across the country have put their own measures in place to punish Iran-linked companies operating in certain sectors of its economy, directing public pension funds with billions of dollars in assets to divesting from the firms and sometimes barring them from public contracts.