Iceland has passed a law banning conversion therapy on the basis of sexuality, gender expression and gender identity.