A federal judge has allowed school districts to sue social media sites, including Instagram and TikTok, for expenses they incurred dealing with students who are addicted to their platforms.