This goes back well into the history of the Bank Act. There was originally an overarching prohibition against both foreign and domestic government involvement as owners of federally regulated financial institutions. That general prohibition has gradually been opened or loosened, or made more flexible, for certain types of investments.
There was a provision added on financial institutions that allowed financial institutions owned by a foreign government to have a wholly owned subsidiary in Canada. For example, the State Bank of India, which is owned by the Indian government, has a subsidiary in Canada. There are other examples of similar kinds of government-owned financial institutions having subsidiaries in Canada.
Likewise, there was an amendment in 2009 that would allow the Government of Canada to inject capital into Canadian federally regulated financial institutions to ensure financial stability, in the national interest of Canada.