The move helps bolster a team that’s racing to make Apple a leader in AI — an area where it’s fallen behind technology peers.