Mom who gave daughter heroin pleads guilty