Meta Platforms Inc. and ByteDance Ltd. were hit with class actions Tuesday from YouTubers who claimed the companies have used their videos to train generative AI models without permission.