The correct answer is by 1900.
34 states made public primary education mandatory and very soon after all states in the federation made it mandatory. In the beginning, 72% of children attended schools but the number increased when all states made it obligatory after world war 1.