New York State legislative leaders have agreed to ban smartphone use in public schools under a new budget agreement aimed at improving children’s mental health.