YouTube settles ahead of California’s second social-media addiction trial