YouTube has agreed to a $24.5 million settlement in the case brought by President Donald Trump after the platform blocked him from posting videos in the aftermath of the Capitol riot in January 2021.