Story highlights Brazilian judge files injunction to block appointment of ex-President Luiz Inacio Lula da Silva

The legal twists and turns have gripped the nation

Lula da Silva would get some protection in a corruption case by joining President Dilma Rousseff's Cabinet

(CNN) A judge from Brazil's Supreme Federal Court filed an injunction Friday night blocking former President Luiz Inacio Lula da Silva from becoming chief of staff to President Dilma Rousseff, the country's state-run news agency, Agencia Brasil said.

Judge Gilmar Mendes granted the injunction requested by the Popular Socialist Party, one of 13 requests sent to the Supreme Court on Thursday questioning the legality of the Cabinet appointment, according to Agencia Brasil.

The ruling represents the latest twist in a legal tug-of-war that has gripped the nation.

But none of this represents the final word on whether the once wildly popular Brazilian leader known as Lula will have a new job -- and new protections in a corruption investigation -- in the Cabinet of Rousseff.

Earlier, a judge's injunction barring Lula da Silva from becoming chief of staff was overturned.