LIPA will spend $109 million for two large energy-storage batteries to help with soaring summer energy demand in the Hamptons, officials said Wednesday, as part of a portfolio of projects that includes a $1.62 billion wind farm and a $513 million grid upgrade for the South Fork.