Stock markets rallied in both Canada and the U.S. early Wednesday after the U.S. midterm election yielded Democratic majorities in both houses of Congress.