Is this restraining supply in any real sense? ASML will want to setup new factories, so saying "one of those needs to be in the EU" is more about directing the funding rather than forcing it to not happen.
In principle I'm not against ensuring some protection of access to strategic resources for countries. (Note I say "access" and not "exclusive access").