If NJ tries this, they'll get slapped by the Third Circuit pretty hard. I doubt if it'd even make it to the Supreme Court.
It wouldn't go to court, because it would not be legislation.
You don't understand how things happen in New Jersey.
The Barnes & Nobles and Borders bookstore chains (among others) will simply be made to understood that life in New Jersey would be easier for them if they, in a private business decision, declined to stock the book. Large bookstore chains, like any other large business, tend to need to interact with government entities. They need zoning approvals to construct/expand stores. They get into tax disputes that need to get reasonably resolved. And so on.
You must come to understand how Democrats do business