The charities gave some funding to Hamas, which is condemned as a terrorist organization for the violent form of its resistance to Israeli occupation of Palestine, but which is also the elected government in Gaza and has long been a provider of medical and other services.