Two months after allowing New York City’s lawsuit against the gun industry to proceed, a federal judge in Brooklyn suggested Wednesday the suit might be doomed by language in the appropriations bill passed by Congress last year.

In a brief order, Eastern District of New York Judge Jack B. Weinstein ordered the city to explain why its suit should not be dismissed in light of the new legislation, which bars the use of a federal database that tracks firearms as evidence in civil litigation.