Insiders say continued failure to get artificial intelligence right threatens everything from the iPhone’s dominance to plans for robots and other futuristic products.