Chrystia Freeland said she would remain a member of Canada’s parliament but had resigned from Prime Minister Justin Trudeau’s cabinet.