South Africa approves same-sex unions in face of religious opposition