The company has long prohibited users to repair their own devices. The shift reflects a strengthening “right to repair” movement.