Earnings have been soft for the industry's biggest brokerages, but lending has helped bolster performance.