City politicians voted unanimously Wednesday to give some overnight shelter beds for the homeless a financial lifeline until new federal funding can be arranged.