The publisher of the Sun has issued a "full and unequivocal apology" to Prince Harry after the duke settled his legal action against them.