The U.S. energy-storage sector has grown rapidly over the last few years as solar has expanded, costs have declined, and electricity demand has soared.