Just gives them more publicity, the publisher probably loves that this happened. And if the kids carry the book into school and its confiscated, and the parents start sending the story into the press and the courts, sales and interest multiply. So, yes, it is probably counterproductive in the case of this waste-of-ink book.
The publisher loves this, since it means now more kids will buy the books rather than borrowing from the library.