Yieldco TerraForm Power is set to buy its first energy storage assets after its parent company, SunEdison, entered into a deal to help finance their construction.