A federal judge in San Francisco said he would preliminarily approve a $255 million class action settlement between Juul Labs Inc. and its customers.