A Texas county has told an appeals court it has a right to cull books on sex, gender and racism