South Korea’s right-wing president, Yoon Suk-yeol, failed in his bid to impose martial law and clamp down on his opponents.