Apple spent a record $4.6 million on federal lobbying during the first half of 2022 on issues including antitrust bills.