MGM Resorts International’s layoff of 18,000 mostly U.S. workers during the pandemic signals the potential for more struggles ahead for a gaming industry that relies on crowds packing swaths of commercial real estate from Las Vegas to Atlantic City, New Jersey.