A federal judge has ruled against the Trump administration’s plan to include a question about citizenship on the 2020 census.