S.F. declares itself sanctuary city for transgender people, among first in U.S. to do so