Please don't feel like you did anything wrong. Your daughter did, not you. You did what you had to legally. Hopefully this will really be a wake up call for her and she will asked help to really get into rehab. It would help her if she asks for the help, and completes the rehab and stays clean before she has to go to court. I know how you are feeling, I turned my son in for stealing. I did it to protect him from himself.
Prayers coming to you and your family.