The short-lived attempt to impose martial law on South Korea has backfired on President Yoon Suk-yeol and resulted in global repercussions for his government.