Silicon Valley’s biggest foundations control billions. Their giving spans housing, science, health, education and climate.