The interesting part here is enforcement. Linux isn't controlled by a single vendor, so I'm not sure who the law would actually target.
At which point the only move is to relocate the foundation to another country, which will then of course be hit by tariffs and sanctions.