California law limits how school districts can use state funds for instructional materials , requiring them to purchase enough textbooks for all students before spending money on electronic material .