The key to new $500 million affordable housing fund? A $40 million grant from Facebook’s founder.