President Lee Jae Myung’s Democratic Party had hoped to consolidate its influence and extend his political momentum.