Shares of Meta Platforms Inc. have been under pressure all year due to questions about its spending on artificial intelligence. But a trial accusing its social media platforms of targeting children goes beyond that, raising existential questions about the future of its core business.