WASHINGTON — President Trump welcomed Aya Hijazi, an American aid worker detained for three years in Egypt, to the Oval Office on Friday after quietly working to secure her release this week.

“We are very happy to have Aya back home and it’s a great honor to have her in the Oval Office,” Mr. Trump said during a brief photo opportunity less than 24 hours after a government plane landed with her at an Air Force base outside of Washington.

Ms. Hijazi, who holds dual American and Egyptian citizenship and attended George Mason University in Virginia, was arrested in Egypt in 2014 on charges of child abuse and human trafficking.

Human right groups had mocked the charges against Ms. Hijazi and her husband, who worked at the Beladi Foundation, a nonprofit organization that she founded to care for street children in Cairo. Her case had become a symbol for the treatment of aid workers by the government of President Abdel Fattah el-Sisi.