How Law Affects Lending