The Secretary shall make grants to States and local governments (and to private nonprofit organizations providing assistance to persons experiencing homelessness or at risk of homelessness, in the case of grants made with reallocated amounts) for the purpose of carrying out activities described in section 11374 of this title.