An oil trader won the right to temporarily keep importing fuels into Mexico after the government of President Andres Manuel Lopez Obrador didn’t renew its import licenses.

Novum Energy, based in the British Virgin Islands, can keep importing gasoline and diesel from the U.S. into the Latin American nation, a federal court in Mexico ruled on Monday. The injunctive relief for the company’s Mexican subsidiary suspends the effects of the decision by the Energy Ministry to not renew Novum’s licenses, according to the court decision.

The Energy Ministry and Novum didn’t immediately return messages seeking comment.

The government of AMLO, as the president is known, is stripping private companies of permits as it seeks to help the state oil company Petroleos Mexicanos to regain market share. Private companies had won terrain after a 2014 landmark law touted by AMLO’s predecessor ended Pemex’s monopoly in the sector. Some of the world’s biggest oil companies, including Exxon Mobil Corp. and Glencore Plc jumped in. But in the past couple of years, the Lopez Obrador administration has withdrawn import licenses or curtailed their validity to 5 years, from 20 years previously.

The Mexican market is of particular importance to the U.S., which sends six of every 10 barrels it exports to its southern neighbor. The Biden administration has voiced concerns over Lopez Obrador’s policies that officials say are discriminating against U.S. companies.

The injunctive relief obtained by Novum is temporary and should remain in place pending a ruling on the underlying lawsuit filed by Novum seeking to guarantee its rights to keep doing business in Mexico.