SAN FRANCISCO — Consumers suing 23andMe Inc. for false advertising won’t be able to wiggle out of an arbitration agreement contained in the terms of service on the company’s website.

U.S. District Judge Lucy Koh on Wednesday granted the DNA testing company’s motion to compel arbitration and dismissed suits that had been consolidated in her courtroom.