This quote is saying that libraries are valuable, and the cost it takes to keep them open and maintain them is worth it because they provide a valuable service. They provide access to knowledge and information, which is important for a nation to be successful and stay informed. The cost of having libraries is much cheaper than the cost of having an uneducated and uninformed population, which would be more expensive for the nation in the long run.