School boards across Texas that are struggling to comply with a new state law restricting “inappropriate” materials on library shelves are turning to artificial intelligence for help.