South Korea has approved the creation of a foundation fighting to protect transgender people from discrimination.