SA parliament passes assisted dying law