Charles Leclerc came from fourth on the grid in Austin to win the eighth Formula 1 race of his career.