SYDNEY — Australia on Thursday passed one of the world’s most restrictive social media laws, banning children under 16 from using online platforms such as TikTok, Snapchat and Instagram.