Prince Harry’s yearslong legal battle against Rupert Murdoch’s British newspaper group took an unexpected turn on Wednesday, after the duke settled his case before the trial was due to get underway.