Opponents of the law argued that it could hinder minors' access to educational resources and support networks