A US appeals court has cleared more than 3,000 lawsuits against Meta, TikTok, Google and other social media companies over claims their platforms were designed to keep young users hooked.