Denmark’s minority government lost its coalition member in pushing through the parliament an approval for highly unpopular deal, which will sell a share in state-owned energy giant DONG to fifth-largest US bank, Goldman Sachs.

There is public resistance to the deal in Denmark, with an online petition against it approaching a record 200,000 signatures.

The Socialist People's Party (SF) walked out of the ruling coalition ahead of the parliamentary vote on Thursday, which approved the purchasing a 19 percent stake by a Sachs-controlled consortium for $1.5 billion.

The development does not make the Danish government collapse, but the remaining two parties have to replace six ministers in the 23-member cabinet previously held by SF members.

SF head Annette Vilhelmsen announced that she would resign her position in the party because she failed to secure a consensus among its ranks over the controversial deal

“It’s been a dramatic 24 hours. I must admit that there has been disagreement in the party, at a national level and in the parliament group,” Vilhelmsen said as cited by the Copenhagen Post. “I couldn’t gather the party.”

Earlier several SF MPs announced that they would boycott the vote defying Prime Minister Helle Thorning-Schmidt, who threatened that SF would be tossed out of the ruling coalition, if any of its MPs didn’t vote for the DONG deal.

“As long as I am unable to vote after my beliefs then I cannot enter parliament so I have decided to boycott the vote today,” Özlem Cekic wrote on his Facebook page. “[The Goldman Sachs deal] could be expensive for taxpayers and I cannot believe that just once we [SF] can go against our government co-operation without being threatened to be kicked out of the coalition.”

The socialists sacrificed a membership in the Danish government, which they haven't had since 1959. But despite the socialist rebellion, the parliament approved the controversial deal on Thursday.

“We are pleased with the approval of this transaction and look forward to making this significant minority investment alongside the Danish State, ATP, PFA and the existing minority shareholders," a Goldman Sachs spokesperson told Business Insider.

The deal is quite unpopular in Denmark, where some 68 percent of people disapprove of it, according to Bloomberg.

An online petition calling to stop the sale had 150,000 supporters shortly before the vote, an explosive growth from around 68,000 on Saturday. By Friday morning there were almost 200,000 signatures.

On Wednesday evening an estimated 2,500 demonstrators rallied in Copenhagen to protest the deal, despite cold and snow.

Critics of the sale are outraged, that Goldman Sachs will have veto power over any changes in DONG’s leadership and strategy. The right is normally reserved for shareholders with at least a 33 percent stake in a company.

There were also reports that Sachs bid was not the highest. An offer of PensionDanmark was 40 percent higher than the bid Goldman Sachs offered, TV2 News reported, citing a leaded note. But unlike the US bank, the company wanted a warranty for the entire amount, the report said. The Danish government denied this allegation.

There is also concern that Goldman Sachs would use tax havens like Luxembourg, the US state of Delaware and the Cayman Islands in their administration of the stake. The government assures that all due taxes will be paid in Denmark.

DONG in its present form was made through a merger of a state-owned oil-and-gas company and several electricity generating companies. The government currently has a 76 percent stake in the company, which will drop to about 60 after the deal is finalized. The company eventually plans to go public.

The company lately had losses and has plans to invest into renewable energy like wind turbines. The financial constraints required investments, which made Denmark offer a stake for sale.