Apple has agreed to pay $25 million to settle claims that its Family Sharing feature misled users about how in-app subscriptions work.