How tech companies sold schools on computer-science instruction that hasn’t worked out for many children.