NYC thwarted in bid to avoid trial in discrimination case challenging its outsider-restriction policy in affordable-housing lotteries