TPG committed to a $1 billion investment, and Lennar will keep a minority stake in the struggling multifamily division.