There is nothing illegal or questionable about a company doing this with its money. From a purely financial perspective, reducing its gross income with tax-deductable donations is also a tax-saving measure. On the other hand, these might be subject to approval by the board, though I'm not sure...