State money, Lt. Gov. visit keeps Mattapoisett wharf project