The legislative body of any city or town is hereby authorized and empowered in its discretion by resolution or ordinance passed by a majority of the legislative body, to take whatever action it deems necessary to enable the city or town to participate in the programs set forth in the Economic Opportunity Act of 1964 (Public Law 88-452; 78 Stat. 508), as amended. Such participation may be engaged in as a sole city or town operation or in conjunction or cooperation with the state, any other city or town, county, or municipal corporation, or any private corporation qualified under said Economic Opportunity Act.