The auto lender is selling its credit card business and halting new mortgage loans, abandoning its once-broader ambitions.