The discovery of nearly two dozen dead whales washing up on the shores of the East Coast in recent months has raised concerns among lawmakers about the impact of offshore wind development on marine life.