Agreement represents bet on transformative nature of artificial intelligence on company’s future business
Streaming company says move is part of broader cost-cutting measures
The iPhone maker’s workforce grew 20% in the past three years, a far slower pace than rivals