New York City will slash its long-standing practice of giving local residents first dibs on new affordable apartments in their neighborhoods after settling a landmark federal lawsuit that argued the Big Apple's current housing lottery policy promoted racial segregation.