Do let us know how you get on - good news that he improved overnight.
It's so hard when you lose any livestock, and when you're just starting it can be a bit too easy to blame yourself for everything that goes wrong (and of course not give yourself any credit for the things that are going right). Seems to me that there's a fair bit of luck, good and bad, involved in all of this. The fact is, you noticed very quickly, got him safe inside very quickly, got the vet out, and got him treated, all very quickly, and you care. This is a lucky ram, whatever happens.