Such funds as the general court may specifically appropriate from time to time may be granted to private nonprofit organizations on an equal matching grant formula basis for the capital costs of renovation, major rehabilitation, or conversion of buildings for use as emergency shelters for the homeless. Such organizations may also use such funds to add additional beds to existing emergency shelters, to maintain such shelters and to provide related supportive and preventive services.