CNOOC wins ruling against Pembina Pipeline