Latino and immigrant rights groups filed a lawsuit Friday afternoon seeking to block the Trump administration from collecting citizenship data to be used for redistricting.

If President Trump’s data collection project is successful, it may lead to states excluding noncitizens from the count they use to draw legislative maps — shifting political power away from growing immigrant communities and toward whiter, more rural areas of the county.

The lawsuit alleges that the Census Bureau’s collection of citizenship data for this purpose violates the Constitution’s Equal Protection clause, and that the move to do so also violates the Administrative Procedures Act.

“Defendants’ actions should also be enjoined because they are motivated by racial animus, are discriminatory toward Latinos and non-citizens, and are the result of a partisan conspiracy intended to dilute the representation of non-citizens and Latinos,” the lawsuit says.

The groups suing the administration — La Unión del Pueblo Entero and Promise Arizona, who are being represented by Asian Americans Advancing Justice and the Mexican American Legal Defense and Education Fund (MALDEF) — were among those who also challenged in court the administration’s attempt to add a citizenship question to the census.

The Justice Department declined to comment on the lawsuit, while a spokesperson from the Commerce Department, which oversees the 2020 census, did not respond to TPM’s inquiry. The Census Bureau also did not comment on the lawsuit.

The Supreme Court invalidated Commerce Secretary Wilbur Ross’ decision to add the question because the justification he gave in doing so — that it would enhance enforcement of the Voting Rights Act — was bogus.

The Census Bureau is now collecting citizenship data using existing government records and said last week that it plans to release the data alongside the redistricting data provided to states in early 2021.

President Trump’s executive order directing the Bureau to collect the data — which came after a Ross directive that had already put the project in motion — explicitly cited its usefulness for redistricting as a reason to do so.

When MALDEF and the other groups challenged the citizenship question, the Maryland federal judge overseeing the MALDEF case seemed open to the argument that excluding noncitizens from redistricting would constitute a discriminatory intent behind adding the question. That judge, U.S. District Judge George Hazel, has been assigned this new case.

In the citizenship question litigation, the groups raised the possibility that redistricting was the true motive for adding the question after files were found on a now-deceased GOP gerrymandering expert’s hard drives suggesting that he was more involved in the effort than previously known.

His files also included a study showing the partisan GOP benefits in reducing the representation of immigrant groups via a citizenship-based redistricting metric.

Altogether, the files show that the current data collection project “was motivated by a racially discriminatory scheme to reduce Latino representation and increase over-representation of non-Latino Whites, thereby serving Republican political ends at Latinos’ expense,” the new lawsuit says.

Read the lawsuit below: