The Liberal Party’s two by-election wins secured a majority in Canada’s parliament, allowing them to pass legislation without opposition support.