The tech chief executive’s visit is seen by Chinese media as a sign the US company remains committed to the country.