It has been an odyssey, but finally, a team of six Afghan girls will be able to travel to the United States to compete in a robotics tournament. Two previous attempts to secure visas – which involved traveling 500 miles to the U.S. Embassy in Kabul – had failed.The U.S. State Department had told the Associated Press that it would not comment on why their visas had been denied, but that "all visa applications are adjudicated on a case-by-case basis in accordance with U.S. law." Afghanistan isn't one of the six countries targeted by President Trump's travel ban.President Trump intervened to find a way to permit the girls entry, the AP reports. The National Security Council opted to "parole" the girls, a status the U.S. Immigration and Citizenship Services explains requires "an urgent humanitarian reason or significant public benefit." The girls will be granted one-time entry to the country."We were disappointed, and we were feeling bad, but now we are very happy that they have given us a chance to go," 14-year-old Fatemah Qaderyan told Reuters as the girls arrived in Kabul on Friday, bags packed for their trip to Washington, D.C.The journey has been a long one. The girls spent six months building their robot, the AP reports, often working six days a week — and then they had to convince their parents to let them go, in a country that often discourages girls in science and math. Then to apply for visas they traveled twice to Kabul — site of a bombing on May 31 that killed 150 people — and their applications were rejected.The team's robot can sort balls, recognize blue and orange, and move objects to their proper places, according to the AP. If the girls had not been able to attend, they would have watched their robot (which was cleared for entry to the United States) compete over Skype.Officials may have been wary of granting visas to the girls for fear that they would end up staying in the U.S., as other students and academics on temporary visas have done before. The phenomenon contributes to a brain drain problem that afflicts Afghanistan, according to The Washington Post: