Iran has said the U.S. wrestling team will be granted visas to compete at the 2017 Freestyle World Cup, after a U.S. federal judge temporarily blocked President Donald Trump’s executive order on immigration, foreign ministry spokesman Bahram Qasemi told the IRNA news agency.

The country reversed its previous decision to deny entry visas in response to Trump’s order, which banned travelers from seven Muslim-majority countries, including Iran. Iran’s foreign minister Javad Zarif said on Twitter that the court ruling, as well as requests from the Iranian Wrestling Federation and United World Wrestling, also know as FILA, had prompted the country to let the U.S. wrestlers into the country.

The wrestling competition is scheduled for Feb. 16 and 17.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Mahita Gajanan at mahita.gajanan@time.com.