A recent settlement has led to a significant financial contribution to the presidential library of a former US president, resolving a defamation lawsuit.