US appeals court allows oil pipeline in New York and Pennsylvania to proceed despite environmental concerns