In the states' case, US District Judge Yvonne Gonzalez Rogers sided with 34 attorneys general who filed claims over allegedly harmful effects of the Facebook and Instagram platforms