Ban on treatments for transgender kids fails in South Dakota