How? Certainly not by judicial fiat.
I'm not saying I'm against passing laws on this subject. My point is that no such laws currently exist, but a bunch of lawyers and judges just decided Facebook owes $17B for breaking these non-existent laws anyway.