I think another translation is correct - all children have access to the library. "The" is not necessary always.
"All children" would be "Alla barn". There's a difference in meaning.
"Alla barnen/All the children" refers to some group of children.
"Alla barn/All children" refers to every child on Earth.