New York lawmakers, and the state's legal community, are mulling a proposal that would limit social media platforms' use of algorithms that determine what content to feed young people—computations that are said to fuel addictions if improperly channeled.