Federal ruling reopens door for controversial gas pipeline through WNY