It seems to me that if this bill had been law prior to that case, it would have forbidden the case from being heard by the Supreme Court and thus the decision of the New Jersey Supreme Court would have stood.
But you must consider:
What's that got to do with what I'm talking about? In Dale vs. BSA, it was the New Jersey legislature that passed a law giving sexual orientation equal status in N.J. State anti-discrimination law with race, etc.; this was not something imposed by judges.