The six girls were taking part in the FIRST Global Challenge competition, which took place across three days and saw 158 nations compete against each other.
They took home a silver medal for courageous achievement, which was awarded to teams "that exhibit a can-do attitude throughout the challenge, even under difficult circumstances, or when things do not go as planned".
According to the New York Times, the team's mentor Alireza Mehraban said: "We are simple people with ideas. We need a chance to make our world better. This is our chance."
A visa is a special permission that you get in your passport which you sometimes need in order to enter or stay in a country for a certain period of time
Their story made the news because, at first, they weren't going to be allowed to go to the competition because of visa problems.
They were told twice that they weren't allowed to enter the country so wouldn't have been able to take part.
However, US President Donald Trump stepped in at the last minute and the girls were able to travel to the US and participate.
The competition - which hopes to inspire young people to want careers in science, technology, engineering, and maths - will take place in Mexico City next year.

Some operations have been cancelled and extra staff drafted in to deal with a surge of patients over the weekend.
The Bristol Royal Infirmary, Southmead Hospital and Weston General hospitals are affected.
More beds are being opened but people are urged not to go to A&E unless they have a "life-threatening" condition.
Instead they are urged to go to minor injury units, chemists and GP surgeries, or to call the NHS on 111.
A black alert, the highest level, means hospital services are unable to cope with demand. The three hospitals were last on black alert earlier this month.
The number of people in hospital for more than two weeks is much higher than usual, said an NHS spokesman.
A surge of patients during last week's cold snap has added to pressure.
The black alert is likely to stay in place for days. Extra ambulance staff are being used to transfer patients into hospital, to prevent ambulances queuing and district nurses are being deployed to hospitals, to help find community beds for patients well enough to leave.
Bristol GP Peter Goyder said an increase in hospital admissions together with "a higher number of very ill patients who need to stay in hospital for longer" had contributed to the situation.
Analysis of the most recent figures suggests hospitals in England are struggling to meet the four-hour target for treating or admitting 95% of patients.
Three hospitals in Cornwall also went on black alert this month, as did two in Somerset.

The cockpit voice recorder from the accident off Shetland in 2013, in which four people died, was recovered by the Air Accidents Investigation Branch.
A judge ruled it was in the public interest and the interests of justice to make it available.
The British Airline Pilots' Association (Balpa) said it had lodged an appeal.
The  union's general secretary, Jim McAuslan, said: "The 2013 Supa Puma accident was tragic, and it is vital the AAIB gets to the root cause and has access to whatever data it needs.
"However, providing the data to the prosecutor and the police in parallel to the AAIB's investigation cuts across everything pilots and the broader flight safety community stand for.
"We cannot stand by while the court allows that to happen without pursuing other legal avenues to highlight our concerns and question whether it is the correct approach."
Prosecutors have been trying to establish whether anybody could be held criminally responsible for the crash.
The Air Accidents Investigation Branch (AAIB) has the right to initial access to the cockpit voice recorder but it routinely chooses not to hand over the material to other bodies - in this case the Crown prosecutors.
The BBC Scotland news website revealed last year an order was being sought by Lord Advocate Frank Mulholland QC at the Court of Session to access the data.
It was a rare legal move.
Lord Jones said he was satisfied that disclosing the data would have no adverse impact on current or future crash investigations - but that it could only be disclosed to the Crown Office and Police Scotland.
A total of 18 people were on board when the Super Puma crashed on its approach to Sumburgh.
Helicopter passengers Sarah Darnley from Elgin, Gary McCrossan, from Inverness, Duncan Munro, from Bishop Auckland, and George Allison, from Winchester, lost their lives.
A team of girls from Afghanistan has won a special award at an international robotics competition in Washington in the US.
[NEXT_CONCEPT]
Hospitals with A&E departments around Bristol are back on black alert for the second time in a month amid "severe pressure" on services.
[NEXT_CONCEPT]
A ruling that investigators should hand over the black box from a North Sea helicopter crash to Scotland's top law officer is being challenged.