Contributions to a 501(c)3 are deductible. Look at page 6 column 3 and page 7 column 1 of the IRS Publication 526. Based on this, the organization donated to the benefactor. As long as the organization has been approved by IRS, i see the deduction as being a deductible charitable contribution.
IRS link to Publication 526.
https://www.irs.gov/pub/irs-pdf/p526.pdf