The judge ruled that the social networking giant did not warn the public about the risks its platforms pose to children, and ordered the funds to be transferred to a fund to reduce harm in the future.