In total, YouTube will pay $24.5 million to settle the suit brought by President Donald Trump.