Apple is planning to spend more than $30 billion as part of a chip supply agreement reached earlier this week with Broadcom.