An Egyptian court on Tuesday ruled in favour of two female TikTok stars who were jailed last year for accounts that were found to violate family morals and for posting indecent videos.