The group has posted solid Q2 results, bolstered by its computers and services, despite supply constraints weighing on iPhone sales.