The ruling is another setback for Meta, which faces an avalanche of lawsuits from families.