If you deal in US dollars, you're subject to US sanctions laws. Hint: if you ever convert between currencies, unless you're EXTREMELY careful, you're actually going X -> USD -> Y.
It took the EU multiple years to setup a facility so they could provide euros to Iran without falling afoul of US sanctions during the Trump admin.
The same applies to foundations, though some of them seem to have adopted similar tactics as the North Korean party anyway.