The so-called rent-a-bank scheme allowed nonbanks to get around state caps on interest rates, according to Democratic lawmakers.