Court rules environmental groups not party to energy regulation lawsuit