Bruce Wayne does all these things in the comics. Wayne Foundation is pretty much all about this, and one of the largest donors to Arkham Asylum to boot. Wayne Enterprises has programs in place for hiring ex-cons so they can better reintegrate into society instead of falling back into crime.
Bruce Wayne literally funds...
- Homeless shelters, with work programs for those who want to get out of the system.
- Half-way houses, with the same so folks can get out of the life.
- Orphanages and Foster Family/Adoption programs
- Troubled Children's Homes
- Scholarship programs for kids in both of those systems
- Schools in low income neighborhoods
- Low Income Healthcare options for certain parts of the city (like Skid Row), including mental health services
... and that's before you consider the aforementioned Wayne Enterprises ex-con friendly hiring policies and his continued Arkham Asylum donations (though I doubt he'd continue that if he knew what they actually DID there). That's not considering the "Batman visits" he gives to guys who legitimately want to get out but are having a hard time. That's not considering all the god damn fund raising Bruce does when he's not working ether of his two jobs OR the countless personal visits his does to ALL of these places to make sure everything is in working order.
It's a wonder Wayne Enterprises can stay in business!