In order to provide legal representation to persons eligible therefor as provided in this article, the judicial department is authorized to pay, out of appropriations made therefor by the general assembly, sums directly to appointed counsel on a case-by-case basis or, on behalf of the state, to make lump-sum grants to and contract with individual attorneys, legal partnerships, legal professional corporations, public interest law firms, or nonprofit legal services corporations.