Court rejects challenge to Flanagan South tar-sands pipeline