Carney is set to form government and cabinet as his Liberal Party wins elections defined by threats from Trump.