Lawyers for the victims of the 2017 Las Vegas mass shooting say they have reached a deal to settle the lawsuit with MGM Resorts, with an expected payout of up to $800m (£647m).

The massive settlement comes just over two years after the massacre, in which a gunman broke the window of a Mandalay bay suite and began open-firing on concertgoers at the Route 91 Harvest music festival.

Lawyer Robert Eglet said on Thursday that the settlement would be between $735m and $800m, and would resolve “substantially all” of the lawsuits related to the shooting. Victims began suing following the shooting claiming that MGM had been negligent in allowing the shooter to stockpile high-powered rifles and thousands of rounds of ammunition in the hotel room.

“While nothing will bring back the lives lost or undo the horrors so many suffered on that day, this settlement will provide fair compensation for thousands of victims and their families,” Mr Eglet wrote in a statement, which said the deal “represents good corporate citizenship” by MGM.

That shooting left 58 people dead, and wounded almost 700, making it the deadliest mass shooting in modern American history. No motive was ever identified by law enforcement in the years since.

Las Vegas shooting – in pictures Show all 15 1 /15 Las Vegas shooting – in pictures Las Vegas shooting – in pictures People scramble for shelter at the Route 91 Harvest country music festival after gun fire was heard Getty Las Vegas shooting – in pictures People carry a person at the Route 91 Harvest country music festival after shots were fired David Becker/Getty Las Vegas shooting – in pictures People run from the Route 91 Harvest country music festival after gun fire was heard David Becker/Getty Las Vegas shooting – in pictures A handout photo released via Twitter by Eiki Hrafnsson (@EirikurH) showing concertgoers running away from the scene (C) after shots range out at the Route 91 Harvest festival on Las Vegas Boulevard EPA/Eiki Hrafnsson Las Vegas shooting – in pictures People lie on the ground at the Route 91 Harvest country music festival after hearing gun fire Getty Las Vegas shooting – in pictures A man in a wheelchair is taken away from the Route 91 Harvest country music festival after hearing gun fire David Becker/Getty Las Vegas shooting – in pictures People stand on the street outside the Mandalay Bay hotel near the scene of the Route 91 Harvest festival on Las Vegas Boulevard EPA/Paul Buck Las Vegas shooting – in pictures FBI agents confer in front of the Tropicana hotel-casino after a mass shooting during a music festival on the Las Vegas Strip Reuters/Las Vegas Sun/Steve Marcus Las Vegas shooting – in pictures Las Vegas police run by a banner on the fence at the Route 91 Harvest country music festival grounds after shots were fired David Becker/Getty Las Vegas shooting – in pictures An injured person is tended to in the intersection of Tropicana Ave. and Las Vegas Boulevard after a mass shooting at a country music festival Ethan Miller/Getty Las Vegas shooting – in pictures Metro Police officers pass by the front of the Tropicana hotel-casino after a mass shooting at a music festival on the Las Vegas Strip Reuters/Las Vegas Sun/Steve Marcus Las Vegas shooting – in pictures A woman sits on a curb at the scene of a shooting outside of a music festival along the Las Vegas Strip AP/John Locher Las Vegas shooting – in pictures A cowboy hat lays in the street after shots were fired near a country music festival in Las Vegas Getty Las Vegas shooting – in pictures Las Vegas Metro Police and medical workers stage in the intersection of Tropicana Avenue and Las Vegas Boulevard South after a mass shooting at a music festival on the Las Vegas Strip Reuters/Las Vegas Sun/Steve Marcus Las Vegas shooting – in pictures Sheriff Joe Lombardo (2-R) speaking during a press briefing in the aftermath of the active shooter incident on Las Vegas Boulevard EPA

The settlement amount announced by lawyers falls in line with a regulatory filing from MGM Resorts, in which it noted that it could face payouts for the same amount.

MGM had initially responded with a robust legal defence to the claims that began to pour in claiming negligence, and sought to block all of the victims from receiving money from the company by arguing that a little-known federal law enacted in the aftermath of the 9/11 terror attacks shielded the company from liability.

The company then argued that the shooting qualified as an “act of terrorism” under the definitions in that law, and therefore — because of that, and also because a security firm that had been hired for the event possessed a special designation from the Department of Homeland Security — the company should not be held liable for damages.

Support free-thinking journalism and attend Independent events

Reliance on that law meant that MGM needed to funnel cases into federal court, which ultimately stirred anger when the company began to counter sue victims.

The shooting on 1 October 2017, left the country reeling from the latest in a string of deadly attacks that have yet to stop. The shooting, as always happens, sparked calls for stricter gun controls in the US, but no major policy changes were enacted.

Firing took place over a span of 10-15 minutes, and the shooter was later found dead on the 32nd floor of the hotel. Alongside him were numerous firearms, and rounds of ammunition.