ABC News has agreed to pay $US15 million to Donald Trump's presidential library to settle a lawsuit over an inaccurate on-air assertion.