Federal judge rules that the Trump administration violated the law when it revoked anti-terror funds for New York’s transit system.