The U.S. Supreme Court on Tuesday stopped the once-a-decade head count of every U.S. resident from continuing through the end of October.

President Donald Trump’s administration had asked the nation’s high court to suspend a district court’s order permitting the 2020 census to continue through the end of the month. The Trump administration argued that the head count needed to end immediately so the U.S. Census Bureau had enough time to crunch the numbers before a congressionally mandated year-end deadline for turning in figures used for deciding how many congressional seats each state gets.

A coalition of local governments and civil rights groups had sued the Trump administration, arguing that minorities and others in hard-to-count communities would be missed if the count ended early. They said the census schedule was cut short to accommodate a July order from Trump that would exclude people in the country illegally from the numbers used to decide how many congressional seats each state gets.

Associate Justice Sonia Sotomayor dissented.