The Trump administration, anticipating millions may avoid answering the citizenship question it has added to the 2020 census, plans to mine immigration, Social Security and other state and federal records to check accuracy, and perhaps even change answers.

Commerce Secretary Wilbur Ross’s order, issued last week, requires the Census Bureau to collect data about citizenship status that can be matched accurately to each census form.

“At...