I'm sure they were given a decent financial incentive to go along with this ban. Taiwan is an ally after all, if you annoy their companies with far overreaching targeted international rules, and don't compensate them, there are going to be political costs.
I would guess the new TSMC facility in the US is part of this compensation - they'll probably be receiving very favourable tax treatment for everything manufactured there.