This title is inaccurate and misleading. The cops searched a publicly accessible Ancestry.com DNA database. Ancestry.com did then hand over the individual's name after receiving a court order. It also later shuttered the public database as a result of learning that cops were using it in this manner.
There is no allegation in this article that 23andme or Ancestry.com has turned over private DNA information (although it's certainly plausible that this has occurred or one day will occur).