The city will contribute $250,000 annually over four years to help fund the $4.4 million facility with 98 beds for homeless residents.