A judge granted preliminary approval to Visa and Mastercard's $38 billion settlement with merchants over interchange fees.