In campaign appearances, Trump railed against offshore wind and promised to sign an executive order to block such projects.