City scrambling for funds for millions in repair costs