Microsoft did not donate any money. They invested in Apple stock with a guarantee not to sell for 2-3 yrs i guess.
As for IE and WMP for Mac, both the projects are abandonded now.
MS Office came first for Mac, then for the PC. Also, MS earns quite a lot from Office:Mac sales, especially in the education market.(The Mac BU at Microsoft is one of their most profitable divisions)