YouTube has joined the ignominious list of tech companies rushing to settle lawsuits brought by US president Donald Trump.