Conservative Scott Morrison's victory is a few seats from a majority as final votes are counted.