A brief filed Monday by Attorney General Letitia James and a coalition of 17 attorneys general argues President Donald Trump’s administration used faulty legal reasoning when it revoked the Deferred Action for Childhood Arrivals program.

The program, known as DACA, allowed people living in the United States illegally, but brought to the country as children, to apply for deferred legal action. President Trump’s administration has moved to end the DACA program, which is being challenged by James in federal court. In the briefing, James’s office argues that ending the program would harm New York residents, institutions and the economy.

“Our country is one of immigrants, our culture made richer by their contributions, and our economy made more prosperous because of their work,” James said in a statement.

“Our government made a promise to DREAMers that they would be able to live their lives free from the fear of sudden, arbitrary deportation, yet the Trump Administration has spent the past two years threatening, bullying, and putting their lives and future at great risk. We will not allow them to continue this cruel crusade against these invaluable members of our society.”

The legal challenge to ending DACA has been under way for the last two years. An end to the DACA program was put on hold while the case is being heard and it is expected to be argued at the U.S. Supreme Court.