The pop star, who was briefly homeless during her teens, helped open two shelters for L.G.B.T. youth.