The law in question that prohibits exports of the latest process node is Taiwanese, not American. So yes, it matters what their interests are.
Regardless of whether you think it's a state, it is an entity with agency that makes its own rules that its companies (like TSMC) follow.