City will help fund townhomes if state does