Emirates and Turkish Airlines said on Wednesday that they were the latest carriers to have been exempted from an American ban on laptops and other electronic devices in the passenger cabins of flights from eight Muslim-majority countries.

The restrictions were introduced in March after intelligence reports suggested that Islamic State militants were developing explosives that could be hidden in the batteries that power portable electronics, including laptops, iPads and other devices larger than cellphones.

The lifting of the laptop ban for some airlines coincided with President Trump’s efforts to bar all visitors from countries he views as a threat. In late June, the Supreme Court cleared the way for the Trump administration to enforce a limited travel ban for several predominantly Muslim countries while the court reviews the case. Turkey is not among the countries affected by the order.

The announcements from Emirates, which is based in Dubai, and Turkish Airlines came after the Transportation Security Administration said on Sunday that Etihad Airlines had been granted approval after introducing more rigorous screening procedures at its base, Abu Dhabi International Airport.

“Effective immediately, the electronics ban has been lifted for Emirates’ flights from Dubai International Airport to the U.S.A.,” Emirates said in a statement, adding that it had been working with the local authorities to put in place new security guidelines for all flights to the United States.

The Department of Homeland Security had previously said that the ban would be lifted if airlines carried out the new measures.

Turkish Airlines suggested on Twitter on Wednesday that it, too, had been exempted from the ban, and it later released a statement saying the ban had been lifted and that passengers on a Wednesday morning flight to New York had carried laptops on board.

Saudia, the national carrier of Saudi Arabia, said that it expected the laptop ban to be lifted on its flights by July 19, Reuters reported, citing the state news agency SPA.

The original ban on devices applied to direct flights to the United States from 10 cities in eight countries: Amman, Jordan; Cairo; Istanbul; Jidda and Riyadh in Saudi Arabia; Kuwait City; Casablanca, Morocco; Doha, Qatar; and Dubai and Abu Dhabi in the United Arab Emirates.

In late May, the United States said it was considering a ban on electronic devices larger than cellphones from passenger cabins on direct flights to the United States from foreign airports. But a month later the Department of Homeland Security announced that passengers would instead be subject to more rigorous screening of luggage and electronic devices.

In recent years, extremist groups have staged attacks on transportation hubs, including at an airport in Brussels and in Istanbul, and bombed a Russian airliner in Egypt in October 2015.