The visit by Macron to Ottawa comes as the two leaders face hefty political challenges at home.