The legislature shall not have power to authorize any county, city, town, or other subdivision of this state to lend its credit, or to grant public money or thing of value in aid of, or to any individual, association, or corporation whatsoever, or to become a stockholder in any such corporation, association, or company, by issuing bonds or otherwise. It is provided, however, that the legislature may enact general, special, or local laws authorizing political subdivisions and public bodies to alienate, with or without a valuable consideration, public parks and playgrounds, or other public recreational facilities and public housing projects, conditional upon the approval of a majority of the duly qualified electors of the county, city, town, or other subdivision affected thereby, voting at an election held for such purpose.