After pouring billions of dollars into laptops, tablets and learning apps, many schools are facing a digital reckoning.