A U.S. judge Tuesday repeated President Donald Trump's vulgar description of African countries while questioning his administration's motives for ending a program that lets immigrants from four countries live and work legally in the U.S.

Judge Edward Chen during a hearing in a lawsuit seeking to reinstate the program also cited a memo that he said suggested the decision to end it was driven by the administration's America First policy. He asked an attorney for the U.S. Department of Justice to respond to allegations by plaintiffs that America First meant excluding immigrants who are not white.

Chen is deciding whether to issue a preliminary injunction blocking the administration's decision to end temporary protected status for people from Sudan, Nicaragua, Haiti and El Salvador. He did not give any indication of when he would rule.

The status is granted to countries ravaged by natural disasters or war. It lets citizens of those countries remain in the U.S. until the situation improves back home.

The lawsuit alleges the administration's decision was motivated by racism and cites Trump's vulgar reference to African countries during a meeting about immigration at the White House in January.

"We just have blatant, rank discrimination statements coming from the most powerful person in the government," Ahilan Arulanantham, an attorney with the American Civil Liberties Union of Southern California, said at Tuesday's hearing. Arulanantham is representing the plaintiffs.

Adam Kirschner, an attorney for the Department of Justice, said the memo Chen cited showed then Homeland Security Acting Secretary Elaine Duke grappling with what to do about temporary protected status. Kirschner said input from the White House was expected on an issue like this, but the final decision was Duke's.

Chen repeated Trump's vulgar comment about the countries while responding that any influence the White House had on Duke could be relevant.

El Salvador was designated for the program in 2001 after an earthquake, and the country's status was repeatedly renewed. The Trump administration announced in January that the program would expire for El Salvador in September 2019.

The administration concluded that El Salvador had received significant international aid to recover from the earthquake, and homes, schools and hospitals there had been rebuilt.

The Trump administration ended the program for the other three countries as well.

More than 200,000 immigrants could face deportation because of the change, and they have more than 200,000 American children who risk being uprooted from their communities and schools, according to plaintiffs in the lawsuit.