Gov. Gavin Newsom is expected to sign the bill this week.
The city plans to use the funds for shelters, behavioral health assistance, employment opportunities and other services.
City officials say state funding for homelessness often overlooks small communities like Palm Springs, where homelessness might not be as severe as urban areas.