Apartment complexes face lawsuit from attorney general