All these books can be read online anyway, and are widely available and shared for free by different activist orgs... I guess the move is more a matter of attempting at controlling what happens in public physical spaces in these states and give parents legal recourses if they don't agree with the interactions between teachers/librarians and students more than banning books. I'm not trying to justify anything here, I'm trying to explain the intent of these laws. They aren't really about banning books.
To put it less confrontationally - the books are banned from schools and public libraries. They're not banned from private purchase or private ownership. You can give these books, you can gift them, you can sell them, you can loan them. Just not anywhere that's publicly funded.
So there's really no difference between them being available from Brooklyn Library and being available from Amazon. As long as Texas isn't funding the BPL, there's no issue here.