For the first time in at least 30 years, Apple is spending more than 10 cents of every dollar it brings in on research and development, one of the strongest signs yet that the iPhone maker is dedicating big money to its artificial intelligence ambitions.