A Brazilian court has cleared the way for the state-owned energy company Petrobras to sell its service station subsidiary BR Distribuidora.

A federal judge in the state of Sergipe had blocked a proposed sale in December last year, following a legal challenge from members of the oil workers’ union Sindipetro. Petrobras had opened the process to sell a majority stake in BR Distribuidora in October last year, after previously looking to sell between 25% and 40%.

The court has now allowed Petrobras to sell BR Distribuidora, basing its decision on a March ruling by the federal audit court TCU that permitted Petrobras to carry on with its asset sales program.

Petrobras said it is analyzing whether to restart the sale process in line with the TCU guidelines.

A federal court last week lifted an injunction against Petrobras transferring an offshore license for the BM-S-8 exploration block to Norway’s Statoil.

Brazil’s state-owned energy company agreed to sell $13.6bn in assets in 2015 and 2016 but fell short of the $15.1bn target. The company also plans to sell $21bn in assets in 2017 and 2018.