S.A. had been waiting decades to bring her daughter and now her grandson to the U.S., where she is a legal resident, from her native El Salvador, where she escaped violence and poverty.

Through a special immigration program, she was finally close to her dream.

In February 2017, she made a final payment of $2,500 to the U.S. for her family's flights. They were told by authorities they would be given final documentation and a plane ticket to travel in two weeks time -- but months went by, and nothing ever came.

Without notifying them, President Trump's administration had already frozen the program just days into his term, even as it solicited and collected thousands of dollars from S.A. and others like her who had been granted conditional approval, according to a new lawsuit that argues the administration broke the law and was driven by "racial animus against Latinos."

For S.A., the news was as shocking as it was devastating: "It hurts me every day that we are apart."

The Central American Minors program, which reunited children and other eligible family members with parents legally residing in the U.S., was one of Trump's early targets as he sought to crack down on legal immigration. Designed during the Obama administration to avoid the scenes at the U.S.-Mexican border that have gripped the nation this week, its termination is now being blamed by some for worsening the migrant crisis and possibly sending more children north.

"Ending this did exacerbate the situation on the border ... When the program shut down, now these individuals have no choice but to remain in daily danger or to try come to the United States by land," said Linda Evarts, an attorney with the International Refugee Assistance Project, which helped to bring the case.

The administration's "unprecedented, unexplained, and unsupported secret shutdown" of the program is also under fire for how it was carried out, with little to nothing communicated to recipients months after the decision was seemingly made and no real explanation ever given.

Lawyers also contend that the real reason was discrimination against Latinos.

On the cusp of being reunited, it's now left families -- like S.A., who asked to go by her initials out of fear for her safety and that of her family in El Salvador -- out of options and money.

Crying, she told ABC News in an interview, "I plead to the president to find it in his heart to consider us ... I'm asking for compassion from the president."

Central American Minors Program

In 2014, more than 50,000 minors reached the southern U.S. border seeking asylum from the violence wracking three Central American countries: El Salvador, Guatemala and Honduras. The largest wave yet of child migrants, it forced the Obama administration to take a multi-pronged approach: sending millions more in aid to the three countries; detaining families who had crossed the border illegally, until a court ordered them to stop two years later; and creating a path for children to come here legally.

That path became the Central American Minors, or CAM, program, which allowed parents lawfully present in the U.S. to apply for refugee resettlement or a temporary status called parole for their children and other eligible family members -- the child's other parent or caregiver or the child's own child, the parent's grandchild.

"When I heard about the CAM program on the news, I was filled with joy at the possibility of being reunited with my family," S.A. said in her sworn statement as part of the lawsuit, adding in her interview with ABC News that she and her daughter finally had hope that her daughter could "come here for a better future for herself and her son."

In total, the U.S. received more than 14,000 applications from children and other family members.

Families had to prove their relations through a DNA test, applicants had to be interviewed by U.S. Citizenship and Immigration Services, or USCIS, and applicants had to meet the definition of a refugee -- someone outside the U.S. who is fleeing persecution due to race, religion, nationality, political opinion or membership in a particular social group.

If a CAM applicant did not qualify for refugee resettlement, they were automatically considered for parole status and informed of whether or not they were granted it when they got their refugee decision.

Parole allows non-U.S. citizens to enter the country for a period of time on humanitarian grounds, although it does not automatically provide a path to legal status. Similar programs were created in the past for Vietnamese fleeing in the 1980's, Filipino World War II veterans, and certain eastern Europeans after the collapse of the Soviet Union.

CAM parole applicants had to prove they were not at risk of harm, had cleared background vetting, and had someone to financially support them. Once they were granted approval, there were a series of final checks to clear: a medical exam and paying the U.S. or its contractor to arrange flights. They'd then be given a travel date and instructions to meet an official at the airport and receive their paperwork and plane ticket.

That was where S.A. and her daughter J.A. were in the process -- having paid $2,500 for flights and having been told they would travel in two weeks, but still awaiting instructions.

As of November 2017, 1,774 children and eligible family members had arrived as refugees in the U.S. and 1,464 had been paroled, a State Department official told ABC News at the time.

But for about 2,714 children and family members, they were somewhere in that final phase when the Trump administration decided to end the program and rescind their approval, even though it would not officially inform them of that decision until nearly eight months later.

What the administration did

Five days into the Trump administration, interviews for the program were "cancelled until further notice," according to emails obtained by the plaintiffs through a Freedom of Information Act request and reviewed by ABC News. On February 3, two weeks into Trump's term, staff at USCIS's Refugee, Asylum, and International Operations Directorate were told via email that all departures were also "temporarily suspend[ed]."

At the same time, the administration stopped scheduling interviews for new applicants, stopped issuing decisions to those who had interviewed, and stopped scheduling the requisite medical exams for those already conditionally approved, according to the lawsuit. In effect, the lawsuit argues, the administration, "without notifying the public," had "blocked their travel."

Citing the ongoing litigation, the State Department and the Department of Homeland Security, which jointly ran the program, declined to answer ABC News's questions, including to confirm whether those specific claims were true.

But a USCIS spokesperson said as much on August 15, 2017, after DHS publicly announced for the first time that the parole portion of the program was terminated. R. Carter Langston, the spokesman, told the New York Times that no one had entered the U.S. since February when the department suspended the CAM program, pending a review, according to the paper.

But an archived copy of USCIS's own website from just nine days prior says otherwise, describing how people can apply.

Either way, it's clear that no one informed most of the recipients who had been granted conditional approval, as they followed through on their final steps and planned their new lives with reunited family members.

"Notwithstanding its secret shutdown of the CAM Program, the Trump administration continued to solicit and accept funds from applicants, leading them to believe the program was still operational," the lawsuit alleges.

For three of the plaintiffs, that included paying the International Organization for Migration, which is contracted by the U.S. government to process applicants, a couple thousand dollars each for plane tickets. One plaintiff who uses the initials R.C. and is a legal resident of Oxnard, California, where he packages produce for a living, had to take out loans to pay $3,875 for tickets for his three children.

Eventually -- in most cases, after a year of waiting -- applicants were reimbursed for the cost of plane tickets or for medical exams that were paid for but not completed, but not for auxiliary costs like the interest on R.C.'s loans or the dangerous travel to and from interviews in each country's capital. S.A. calculates that she lost approximately $1,383 on her daughter and grandson's interviews and application expenses, as well as suitcases for them to travel with and new clothes she planned to gift her grandson.

When the administration finally announced in August that the program was ended, it was through a notice in the public register -- one that revoked conditional approval for those 2,714 people in a single sentence: "USCIS will notify individuals who have been conditionally approved for parole under this program and who have not yet traveled that the program has been terminated and their conditional approval for parole has been rescinded."

There was no reason given, and the notice left many shocked.

"I was confused and thought the cancellation would not apply to my family because they had already been approved and passed their medical tests, and I had paid for their flights," said S.A.

But she was wrong.

Instead, their families were left trapped in the turmoil of their home countries -- where the threats that they faced became horribly real. In fall 2017, R.C.'s oldest son J.C. was playing soccer when he "was beaten by MS-13 members to the point where he lost consciousness and required emergency surgery," according to the lawsuit.

At 16 years old, he now walks with a cane, struggles to bathe himself, and is terrified to leave his house, forcing him to drop out of school.

S.A.'s fear for her daughter and grandson is overwhelming, she said, telling ABC News they "can't go out without fear that they won't come back alive." At one point last year, she sent her daughter money to go into hiding in another part of El Salvador to get away from an MS-13 gang member pursuing her.

Three months later in November, the State Department announced it was ending the refugee resettlements, officially terminating the entire program.

What the lawsuit alleges

The lawsuit against the Trump administration argues that it broke the law by not adhering to its own regulations for the program when it continued to publicly welcome applications, accept payments and not inform each recipient of the program's demise -- only to rescind their conditional approval en masse with no explanation.

The plaintiffs are arguing that doing so was a violation of the Administrative Procedure Act, which governs the way the executive branch's agencies behave, because the decision and manner it was carried out were "arbitrary, capricious, an abuse of discretion, or otherwise not in accordance with law."

"It strikes me as not a particularly well-thought-out process for dismantling the program and I think that in the end could lead a court to find that it's arbitrary and capricious," said Kevin Johnson, dean of the University of California, Davis School of Law. "You got a secret decision made, money being taken -– it looks like the keystone cops are running this part of the government."

The suit also carries a heavy charge that Trump's administration also violated the Constitution by acting out of "racial animus against Latinos," saying the move "can only be understood as another one of this Administration’s cruel and xenophobic policies against people it has publicly labeled 'animals.'"

The plaintiffs cite "President Trump’s long history of racial slurs and epithets toward Latinos" and "the Trump Administration’s targeting of Latinos for disfavored treatment." In particular, their lawsuit references nine statements from President Trump and half a dozen more from then-candidate Trump, including his comments that federal judge Gonzalo Curiel couldn't be fair in a Trump University lawsuit because of his Mexican heritage and his infamous campaign announcement speech in which he said Latin Americans were "bringing drugs. They’re bringing crime. They’re rapists."

While the executive branch has broad sway over immigration policy, Johnson said that as with the litigation against Trump's travel ban, his rhetoric turns an easily dismissed case for a normal administration into a much harder battle.

"Ordinarily, I would think this would be an extremely difficult case to win, but under the circumstances, I think it’s going to be a harder case for the administration to prevail on," he told ABC News.

What happens next?

The lawsuit was filed June 13 in the Northern District of California, where two of the plaintiffs, including S.A., live. It asks that the nearly 3,000 children and family members who were granted conditional approval be allowed to proceed and have their cases move forward.

But given the power of the presidency, it's unclear whether that will happen. Trump's first and second version of the travel ban ultimately died in the courts, but the third version will face a decision at the Supreme Court this month -- and its fate could forecast the future of this lawsuit.

In the meantime, Trump continues to remodel immigration in America, through his rhetoric, but more powerfully by deploying executive authority like in this case. Similarly, he implemented a "zero-tolerance" policy for anyone who crosses the border illegally -- which has led to the family separation because children cannot be held in jails -- before reversing it with an executive order under intense pressure.

The president has terminated the Deferred Action for Childhood Arrivals program for children who crossed into the U.S. illegally but have grown up here. And he has ended Temporary Protected Status programs that allowed nearly 265,000 Salvadorans, Hondurans, and Nicaraguans to live in the U.S. for decades. And with their statuses now set to expire, the cancellation of the program has forced them to find a new way to remain here legally, depart, or be deported.

Experts also argue that ending the CAM program may force other families to send their children or loved ones on the dangerous trek over land to the border. Michelle Brané, director of Migrant Rights and Justice at the Women's Refugee Commission, likened it to a burning house: "Preferably you've got fire escapes and the front door to go out of, but if somebody shuts those mechanisms, people aren't going to just sit there and burn. They’ll find another way out."

Brané added that the termination is a boost to the smugglers, or "coyotes," that lead migrants on the treacherous journey, often with little regard for their safety -- or even abusing them along the way.

"Canceling that program handed smugglers a whole population of vulnerable kids that are desperate to get to safety," she said. "It empowered smugglers, frankly."

That's an option that S.A. at least has chosen not to make. She cried at even the thought of having her daughter, grandson or other children who did not qualify for the CAM program make the journey.

"I would never think to bring them here that way. It's too dangerous. They can die on the way or be raped or killed, and I could never think of trying to bring my kids like that," she said.

Instead, she's unsure of what happens next, as the reality that her family is not coming starts to sink in. And it's not just the fear for their safety that she has to live with: In fall 2017, she was diagnosed with breast cancer, forced to undergo surgery and two weeks of radiation without her daughter by her side.