What they could have done is not cancel the Keystone pipeline. Enact common sense energy policy instead of pushing all their chips into green technology, a key component of which is battery based and whose supply chain is heavily linked to Russia.
Also, the fuel processed from the pipeline is chiefly an export, so it wouldn't have affected prices in the USA.
Lastly, the XL pipeline was a huge risk to the American agriculture industry. There was opposition to it it on the right, particularly from ranchers in the region. Do you really think it's wise to put the beef and wheat industries in the north at risk just so refineries can sell oil overseas at a slightly lower cost?
Oil is (mostly) fungible. An export from Canada is additional capacity that doesn't compete for American oil that can stay in America.
https://qz.com/2139399/surging-nickel-prices-are-bad-news-fo...