Whenever the director determines that a local agency which would otherwise be eligible for funds under the formula of Section 8686 is unable to finance a project due to exhaustion of its financial resources because of disaster expenditures, the director may allocate funds to pay such portion of the cost of the project as the director determines is necessary to accomplish the projects.