(b) Whenever any county, city, other than the city of New York, village or school district which is coterminous with, or partly within, or wholly within, a city having less than one hundred twenty-five thousand inhabitants according to the latest federal census provides by direct budgetary appropriation for any fiscal year for the payment in such fiscal year or in any future fiscal year or years o