The agreement depends on the success of Vineyard Wind’s bid in the state’s latest solicitation for proposals to generate wind energy off the Massachusetts coast.