The deal will help Encore transition to an independent power producer that owns and operates clean-energy assets