What should you do? Continue as you have been. Be a friend, listen and not offer advice unless he asks for it. Do not be hasty and point fingers if he slips up or makes mistakes along the way. You are the lighthouse of safe haven, so be kind and gentle. He's going to be fragile for quite some time.
Also, I would continue to live my life and do the things that I enjoy. When he sees that you are not "expecting" him to be the old self, he will continue to reach out. One word of caution...the marriage you had is now dead and you just may get the opportunity to build a new one. Whatever changes you have made, you must continue on with them. There will be times that he will ask if you want him to just leave again, especially is something isn't going well...do not encourage him to leave. You want him to be drawn to you, i.e., just like a moth to a candle.
I will caution you...this final stage is the most difficult for us because we want them to hurry up and get over the crisis and come back home. Just as it took a long time for him to go into crisis, it will take just as long for them to recover and want to return home. You may discover that he has kept some of the habits he has developed during the crisis and others will return just like they were pre-crisis. Whatever the outcome...patience is the main ingredient in getting to the finish line.
Again, just be a friend, give him a safe place to land and do not be judgmental. He will know that he's got a lot of difficult/heavy work to do and it cannot be swept under the rug.
Good luck!
Sit quietly, the answers will reveal themselves when you least expect them to. The past is gone, the present is a gift and you need to focus on today, allow the future to reveal itself when it is ready.