A class-action lawsuit over security deposits at apartments operated by MG Properties has reached a settlement worth nearly $10 million.