1. Apple's 'job' is to do what it needs to do to ensure that its business prospers. If the housing 'crisis' in the Bay area is a risk to how it wants to conduct its business, isn't it reasonable that it invests to mitigate that risk? (This is barely different to Apple making large investments in manufacturers, to support them in turn being able to supply what Apple needs to buy from them.)
2. From what I read and see when I visit SF, and also more broadly in the US, the government (be that national, state, or city?) is doing a pretty poor job of tackling housing-related issues - from affordability to homelessness. Can you directly attribute this widespread failure to a lack of funding, due to insufficient taxation of Apple and others?
3. Isn't $2.5bn (+/- new approaches?) to try to combat these issues better than $0, irrespective of where it comes from?