The Australian Senate has passed a social media ban for young children that will soon become a world-first law.