South Korean president appoints justice minister despite scandals