The Duke of Sussex has settled his High Court case against the publisher of The Sun.