A federal judge approved genetic testing firm 23andMe Inc.’s $30 million data breach settlement but told lawyers to make some changes.