The law has been used to purge hundreds of titles from the shelves, particularly books that include LGBTQ characters or racial justice themes.