At Home set to emerge from bankruptcy with most of its stores