Apple has agreed to pay $20 million to settle a class-action lawsuit related to battery issues on select Apple Watch models.