Amazon (and others) are exploiting a tax loophole, and the state governments are trying to stop that. They should, however, make such rules for all retailers, and not target Amazon specifically (I am not sure if they are doing so, but the parent comment makes it seem like that).
In other words, rather than simply assuming that states have essentially unlimited authority to tax (subject to their courts and legislatures), is there a point where the authority to tax ends? At one extreme, I would submit that they can't tax me, sitting here in NJ. (However, I once had the State of Connecticut contact me, forcing me to prove to them that I didn't need to pay them income tax, so it appears to me that States do believe that their power is unlimited). On the other hand, few would argue that, say, a local shop ought to be exempt. Where do we draw the line?
It's interesting enforcing contracts when my local government can sign a contract that we'll pay pensions for the next 40 years in exchange for a service now (say education), but I can move away after consuming it (or simply never become productive and pay taxes).
Some people took these positions based on the deferred compensation. If that goes away, there will need to be upfront compensation. If neither of those happen you won't find many qualified people willing to take those jobs. Both sides will get screwed.
The issue here is that the law is such that out of state vendors don't have to pay tax; Illinois is just trying to jigger a way to make Amazon have to pay anyway, because Amazon sells lots of stuff and they'd like the tax revenue. But that effectively gives their competitors a 10% pricing advantage, not to mention making accounting much more expensive.