MGM Resorts has agreed to a $45 million settlement to resolve class-action lawsuits related to two significant cyberattacks that compromised personal data of millions of…