Updated

Former President Luiz Inacio Lula da Silva was sworn in as his successor's chief of cabinet on Thursday, in what critics are calling a bold-faced attempt to help him avoid possible detention in a sprawling corruption investigation at the state-run Petrobras oil company.

Cabinet members cannot face criminal charges unless they are approved by the Supreme Court.

Less than an hour after the swearing-in, the Brazilian media confirmed that a federal judge had suspended Lula’s appointment as a precautionary measure.

"In light of the risk of harming the free exercise of judicial power (...) I grant the request for an injunction to suspend the nomination of Mr. Luiz Inacio Lula da Silva," the judge wrote in his decision, according to Reuters.

President Dilma Rousseff has insisted that Lula would help put the troubled country back on track while denouncing attempts to oust her.

The Petrobras probe already has ensnared dozens of public figures from across the political spectrum as well as prominent business leaders. It's just one of several crises battering the nation that in five month will play host to the Olympics, including a deepening recession and an outbreak of the Zika virus.

Anger over Silva's appointment fueled protests Thursday in Sao Paulo, where demonstrators brandishing inflatable dolls of Silva in black-and-white prison stripes shut down the main thoroughfare in the metropolitan area of 18 million. In the capital, Brasilia, three demonstrators were detained during scuffles with government supporters.

And in yet another surprise development, a low-level federal judge in Brasilia issued an injunction suspending Silva's nomination, though government officials expected it to be swiftly overturned by a higher court.

At the swearing-in ceremony, the atmosphere recalled a campaign rally as a crowd packed with top officials broke into pro-government chants.

In a combative speech, Rousseff said she was counting on her "great friend, great comrade" Silva to help lift the country out of the current economic and political imbroglios and vowed that "the shouts of the putschists are not going to take me off course nor will they bring out people to their knees."

The president, whose approval ratings have touched single digits in recent months, is battling an attempt in Congress to impeach her and calls from protesters in the streets for her ouster.

Rousseff lashed out at Wednesday's surprise release of tapped phone calls between Silva and a host of prominent public figures, including Rousseff herself. The judge heading the Petrobras case, Sergio Moro, released the recordings hours after the announcement of Silva's appointment, writing that the taps appeared to suggest attempts to influence judicial officials in Silva's favor.

Rousseff called the recordings illegal and said their release made "clear the attempt to overstep the limits of the democratic state."

"Shaking Brazilian society on the base of untruths, shady maneuvers, and much-criticized practices violates Constitutional guarantees and creates very serious precedents," Rousseff said. "Coups begin that way."

Silva's appointment comes under two weeks after officers took him to a police station to respond to questions in the Petrobras scandal, and critics see his return to the government as a way to help avoid legal woes. Government supporters, on the other hand, insist Silva will be crucial to blocking what they see as politically inspired impeachment proceedings against Rousseff over allegations of fiscal mismanagement.

Both Rousseff and da Silva have repeatedly denied any wrongdoing.

Rousseff has seen her popularity nosedive as the country of 200 million has spiraled into crises on several fronts. The Petrobras corruption investigation has stained Brazil's political and business elite. The country is ground zero for the Zika virus, which scientists believe can lead to birth defects. The economy is mired in the worst recession since the 1930s, with rising inflation and daily announcements of layoffs adding to people's fears and desperation. And in the middle of it all, Brazil is set to host the Summer Olympics in Rio de Janeiro in August.

On Sunday, an estimated 3 million people took to the streets for nationwide anti-government protests that newspapers here described as the biggest political demonstrations in Brazilian history.

With reporting by the Associated Press.

Like us on Facebook

Follow us on Twitter & Instagram