Meta faces a trial over claims that Facebook and Instagram were designed to encourage compulsive use among young users.