The teenagers were denied access to the USA under the president's executive order on travel after making multiple trips to their country's capital depsite the dangers of the war-torn region.
The State Department and Department of Homeland Security came up with the idea of "paroling" the girls.
The initial visa denial for the Afghan team was met with complaints from human rights organizations and questions about if the USA was walking away from previous efforts advocating for educational opportunities for young women in Afghanistan, wrotethe Post.
First Global, the organization putting on the competition, said that a team from the Gambia is also being allowed to join the event despite having previously been rejected.
The team of six Afghani girls were initially denied visas to the USA after twice making the 500 miles journey from Herat to the U.S Embassy in Kabul, Afghanistan.
"I truly believe our greatest power is the power to convene nations, to bring people together in the pursuit of a common goal and prove that our similarities greatly outweigh our differences", FIRST Global President, former U.S. Navy Admiral and congressman Joe Sestak said in a statement.
A harmless version of the decrees with the anti-immigration administration Trump has recently entered into force, restricting entries of visitors come from Iran, Libya, Somalia, Sudan, Syria and Yemen, and that pending the final decision of the supreme Court on these orders.
A six-member team of Afghan schoolgirls has been finally granted U.S. visas to participate in a global robotics competition, a media report said on Thursday.
Following the announcement, Trump's daughter Ivanka posted on her Twitter page that she was looking forward to welcoming the girls to Washington.
Non-profit First Global created the contest as a way to spark interest in science and tech for high schoolers across the globe. Sestak said the State Department was a "star player" in the entire process of coordinating travel for the competing teams, but he had no direct knowledge of Trump's involvement. Roya Mahboob founder of software company Citadel who organized their interview told that the girls were very disappointed and they were crying all day.