YouTube has agreed to pay 24.5 million dollars to settle a lawsuit filed by US President Donald Trump over his suspension from the video-sharing platform.