Going against state bankers, New York Gov. David A. Paterson has signed into law a measure that will allow prevailing homeowners in many foreclosure actions to claim attorney fees from lenders.

The Access to Justice in Lending Act, A1239/S2614, will put defendants in foreclosure proceedings on the same footing as lenders, who often include in mortgage documents the right to recoup reasonable attorney fees if they bring a successful action.