In a landmark trial, social media giants Meta and YouTube were found negligent and ordered to pay for harming a user’s mental health. The decision could force major changes in how social platforms work