Costco plans to open a new store in South Los Angeles and has teamed with developers to build an 800-unit apartment complex — with 84 units set aside for affordable housing.