The blockbuster resignation of Chrystia Freeland on Monday forced Trudeau to act quickly