Broadcom strengthened its growth outlook by securing a $30 billion chip agreement with Apple through 2031.