The actress says ‘I’m glad that he’s out of pain’ as she opens up on the Friends cast’s efforts to help him fight substance abuse