The donation, which is the largest private gift the nonprofit has ever received, will help address housing.