Check to see if the town has a charter. Like a constitution for the town. Also find out if your state is a Dillon Rule state which means that counties, parishes, cities and towns cannot make any laws or rules that the state does not agree with. Then look at your state's constitution.
As a general rule, unless the town council/selectman vote to approve this "gift" at a public meeting then the "gift" is suspect.