You did do the right thing..she ASKED you to help her...
and yes, the father of her children NEEDED to know all that you told him.
Remember .,..she has children... their safety/well being, ALWAYS comes first.
NO child wants to grow up with a druggie parent... no child wants or deserves that...