President Obama said the legislation, which is modeled after a new law in California, is necessary as digital learning becomes more prominent in classrooms. Leading up to his State of the Union Address next week, the proposal was part of the president’s recent focus on cybersecurity and privacy.