Well done! The attention you gave to him clearly made all the difference and I doubt he'd have survived based on the state he was in. You're a hero!
Keep in mind that if budget is an issue, craigslist could be your best friend. You might be able to find a cracked fish tank for cheap or totally free or something similar that'd be a better size for him.
There are also many DIY options.