In ASML's case it is the Dutch government banning them, because US government openly threatened them. It's the logical thing to do for an ally.