No town, city, borough or other political subdivision of this state shall be party to a library agreement which provides for the construction or maintenance of a library pursuant to article III, subdivision (c-7) of the compact, or pledge its credit in support of such a library, or contribute to the capital financing thereof, except after compliance with any laws applicable to such towns, cities,