The tech leader has overseen immense growth at Apple – and faced scrutiny for his ties with President Trump.