A closely watched test case could rewrite the rules of engagement for social companies and their youngest users — and leave tech titans on the hook for billions in damages.