The Duke of Sussex settled his legal action against The Sun’s publisher on Wednesday.