Office buildings across the country are facing wrecking balls — and they are increasingly being turned into housing.