New York State has enacted legislation that will require major social media platforms to display mental health warning labels.