LONDON — Prince Harry claimed a “monumental” victory Wednesday as Rupert Murdoch’s U.K. tabloids made an unprecedented apology for intruding in his life for years, and agreed to pay substantial damages to settle his privacy invasion lawsuit.

News Group Newspapers acknowledged its private investigators and journalists targeted Harry with phone hacking, surveillance and misuse of private information. The company offered him a “full and unequivocal apology” for intrusion by the now-defunct News of the World and its sister tabloid The Sun.

The statement, read out at the High Court in London by Harry’s attorney David Sherborne, even went beyond the scope of the case to acknowledge intruding on the life of Harry’s mother, the late Princess Diana, and the impact it had on his family.

“We acknowledge and apologize for the distress caused to (Prince Harry), and the damage inflicted on relationships, friendships and family, and have agreed to pay him substantial damages,” the settlement statement said.

News Group has long acknowledged that phones were hacked by staff at the News of the World, the weekly newspaper that Murdoch shut down in 2011 amid a public outcry over tabloid snooping. But this is the first time the company accepted wrongdoing at The Sun, a paper that once sold millions of copies with its formula of sports, celebrities and sex — including topless women on Page 3.

Harry, 40, the younger son of King Charles III, had vowed to take his case to trial to publicly expose The Sun’s misdeeds and win a court ruling upholding his claims. He and Tom Watson, a former Labour Party member of Parliament, were the only two remaining claimants out of more than 1,300 others who had settled lawsuits against News Group Newspapers.

The trial was due to start Tuesday but was postponed amid last-minute negotiations that led to the dramatic settlement announcement.

Although the settlement means Harry will not get his day in court, his lawyer said it delivered the accountability he sought for himself and hundreds of others who were snooped on with intercepted voicemails, tapped phones, bugged cars and various forms of deception.

News Group acknowledged “phone hacking, surveillance and misuse of private information by journalists and private investigators” aimed at Harry. NGN had denied those allegations before trial.

“This represents a vindication for the hundreds of other claimants who were strong-armed into settling without being able to get to the truth of what was done to them,” Sherborne said outside court.

Harry’s feud with the media dates back to his youth, when the tabloids took glee in reporting on everything from his injuries to his girlfriends to dabbling with drugs.

But his fury with the tabloids goes much deeper.

He blames the media for the death of his mother, who was killed in a car crash in 1997 while being chased by paparazzi in Paris. He also blames them for the persistent attacks on his wife, Meghan, that led them to leave royal life and flee to the U.S. in 2020.

The litigation has been a source of friction in his family, Harry said in the documentary “Tabloids On Trial.”

He revealed in court papers that his father opposed his lawsuit.

He also said his older brother, William, Prince of Wales, and heir to the throne, had settled a private complaint against News Group that his lawyer has said was worth over $1.23 million.

“I’m doing this for my reasons,” Harry told the documentary makers, though he said he wished his family had joined him.

News Group Newspapers said the settlement “draws a line under the past” and ends more than a decade of litigation.

The company has now settled more than 1,300 claims without going to trial. In doing so, it has spent more than $1.24 billion in payouts and legal costs.