A divided Supreme Court ruled Monday that Congress can force the nation 's public libraries to equip computers with anti-pornography filters .