A pair of bills approved by California legislators would regulate how Facebook, YouTube and other platforms treat minors