Blockbuster iPhone sales and new, budget-friendly Macs are boosting the technology giant's profits.