Renewable energy, including from offshore wind, is crucial to the effort to avoid some of the worst effects of climate change, according to environmentalists and some elected officials.