Prime Minister Mark Carney secures a majority government after byelection wins in Toronto and Quebec, ending legislative gridlock and vowing swift action.