Town Board passes moratorium on solar and wind energy