Canada petitions US court to keep oil pipeline flowing