Mrs. Lam led the failed effort to overhaul the city’s election process according to Beijing’s wishes, which prompted the so-called Umbrella Movement protests that shut down parts of the city for months in 2014.