N.J. may appeal affordable housing ruling