In New Bedford, one of the poorest cities in the state, offshore wind has offered a new source of jobs and investment.