The company is the latest tech giant to pledge big bucks toward the housing crisis. The firm wants to build 20,000 units, a quarter of which would be affordable.