Rethinking the building code to allow single-stairwell buildings brought more small-lot, mid-rise apartments to the city—and sparked a wider reform movement.