A federal judge has struck down key parts of an Arkansas law that would have allowed criminal charges against librarians and booksellers for providing so-called “harmful” materials to minors.