The court ruling removes a barrier that could have prevented Lee Jae-myung from running for president.