Ottawa to invest up to $400 million in Teck critical minerals smelter in B.C.