About 600 apartments are to open near Microsoft Corp.’s Mount Pleasant data center development by the end of 2028 under an agreement.