no need to feel guilty, he betrayed your trust. you did nothing to feel guilty about. i'm glad to hear that he is ready to face his issues. like someone said, watch his actions and set boundaries for yourself.
there is really nothing you can do to stop him from getting these pills from others but its good that he is no longer prescribed them legally.