The deal ends a failed experiment in consumer lending for Goldman Sachs, which launched a card with Apple in 2019.