The banking industry was dealt a setback in its challenge to a New York City law that requires banks with city deposits to meet community investment needs for local and moderate income people and small businesses.

Southern District Judge Katherine Polk Failla held that banks attacking Local Law 38, or the “Responsible Banking Act,” lack standing to sue because the city has yet to appoint a key advisory board established by the law or take other measures to enforce it.