World number one Simona Halep came from a break down in the third set to beat American Sofia Kenin and reach the Australian Open third round.