Australia’s parliament has passed a law banning social media for children under 16, putting tech companies on notice to tighten security before a cut-off date that’s yet to be set.