A federal judge in Maryland on Friday struck down the move by the Trump administration to add a citizenship question to the 2020 census.

U.S. District Judge George Hazel said the question violated the Constitution’s Enumerations Clause because it compromised the survey’s accuracy. The judge also ruled that the way in which the administration went about adding the question violated the Administrative Procedure Act. Yet, the challengers did not win on their claim that adding question was also a civil rights violation, as they failed “to show that the addition of the citizenship question was motivated by invidious racial discrimination,” according to the judge.

Hazel’s order blocked the Trump administration from including the question on the census, regardless of whether it found a way to do so in compliance with the Administrative Procedure Act.

Hazel is the federal second judge to rule the question unconstitutional and the third to say the move to add it violated the administrative law.

However, whether the question stays on the upcoming decennial survey will ultimately be up to the Supreme Court, which has scheduled arguments on the issue for later this month.

Read Hazel’s full decision below: