Unions warn against threats of AI and Brexit to worker rights