It is true that libraries are not supposed to restrict print material based on age. But internet access in a publicaly funded library is restricted by federal law.
The ALA extends that policy to videos and the internet.