The pipeline from Quebec will help New York meet ambitious targets for cutting back on greenhouse gas emissions and could be crucial if the city faces a power shortfall.