New York's largest foreclosure law firm is fighting to overturn a state court requirement that it and other firms submit an affirmation vouching for the accuracy of documents they file for lenders.