A social media ban for children under 16 passed the Australian parliament on Friday in a world-first law.