The iPhone maker’s clout as a buyer has taken a major hit from the AI boom.