WASHINGTON — The Trump administration flew Aya Hijazi, an Egyptian-American aid worker, home to the United States on Thursday evening after negotiating her release from three years of captivity in Egypt on charges of child abuse and human trafficking, two senior administration officials said.

Ms. Hijazi’s case had become an international symbol of Egypt’s treatment of aid workers, and President Trump had been criticized by human rights advocates for not publicly raising her plight during an Oval Office meeting with President Abdel Fattah el-Sisi of Egypt early this month.

But the two administration officials said that despite the public silence, the United States had quietly secured a promise by Egyptian officials for her release before Mr. Sisi arrived at the White House, efforts that culminated over the weekend when a court cleared her. Ms. Hijazi, who grew up in Virginia, near Washington, returned aboard a government jet that landed at Joint Base Andrews, accompanied by her family and top American officials.

In a statement, lawyers for Ms. Hijazi said that they had “worked closely with the Trump administration to ensure Aya’s case was prioritized at the highest levels, and we are deeply grateful to President Trump for his personal engagement in resolving Aya’s case.”