Inspectors said materials found in the library are "actively undermining fundamental British values".