They can, since ASML are using US technology. Especially after ASML brought out Cymer.
But USA didn't have to force them. ASML's EUV tech started out as a US funded venture, so I don't think they want to start a fight with USA.
And USA could obviously change its laws to block sales of technology even if less than 25% of the end product is from USA.