A woman loses her home. She is homeless and pregnant, she births a baby girl. She tries to raise it but in the end she buys her a necklace and tells her she's gonna get sandwiches and leaves her. The woman has organised with someone to adopt her girl. The adopters go and get the girl when the mom left her alone to get the food. The mother has organised this. Also there is a scene where the girl nurse in a hospital and she likes it there, she doesn't wanna leave. The director in the ending titles indicates how many people are homeless in the United States. The whole story takes place somewhere in the United States. I think sometime in the movie the woman works in a factory and when the girl is still a baby the man who rents them the apartment they live in tries to rape her.
May be it's God Bless the Child (1988)?