In the EU similar problems are solved easily
For instance, Hungary puts up taxes on companies, so quite a few companies close Hungarian offices and open similar in Slovakia (it has a far more favourable tax regime).
Perhaps Amazon and others should not argue the decision and merely (with business efficiency) observe it. Any consequential losses to New York State will in all probability be swiftly followed through by a repeal of sorts. If, as in th UK, local authorities see revenue streams as compromised r nullified into non-existence than they usually act swiftly. Then there are also the sooth-sayers planning budgets on expected/predicted insomes that no longer exist = (usually) an improper and usually illegal state budget.