The judge in two Virginia book-banning cases has dismissed the lawsuits.