South Korean court grants extension of President Yoon's detention