A federal judge ruled Tuesday that the Trump administration’s effort to end New York’s congestion pricing scheme was “unlawful.”