Nothing in this section affects the rights or remedies of any party under any contract or obligation, in effect or pending approval before the appropriate State regulatory authority or non-regulated electric utility on or before August 8, 2005, to purchase electric energy or capacity from or to sell electric energy or capacity to a qualifying cogeneration facility or qualifying small power production facility under this Act (including the right to recover costs of purchasing electric energy or capacity).