The deal will create one of the largest real estate companies in the U.S., with more than 180,000 rental apartments.