This ruling is absurd. The "harm" alleged could be produced not only by any social media, but by any mass media. But this ruling is really not about that-- it is a shot across the bow of Facebook and the rest of Big Tech warning them to get in line with the official propaganda or the US government will make their lives very difficult. Notice how this wasn't happening to Facebook when they were banning anyone that posted the wrong opinion about the Ukraine War or Covid shots.
Manipulating children to get them addicted or push them deeper into a fatal mental illness (like anorexia) for profit is the same thing tobacco companies did and society responded in much the same way.