Children aged under 16 will be banned from using social media under world first laws passed by the Senate overnight.