As lenders redouble their efforts to measure the carbon impact of their loans, they’re finding that residential mortgages are often one of the biggest line items on their books.