Below is legislation from the UN, EU, UK, and general licences from the US which authorise humanitarian and other exemptions to sanctions for charities and NGOs.
UN Resolution 2664 (2022), standing humanitarian exemption to all asset freeze measures imposed by United Nations sanctions regimes
Below are various resources from the UN, EU, UK, and US containing guidance for charities and NGOs relating to sanctions.