The Australian government's plan to ban children from social media to protect them from harm has won almost universal political support.