Joan Llort, Secretari general de la UGT