Australian children are set to be banned from social media platforms under new laws passed in time for Christmas.