BRUSSELS — Eurozone officials were optimistic of approving a draft bailout deal for Greece on Friday after the country’s lawmakers cleared it in a vote that nevertheless saw the government suffer significant dissent.

The bailout is all that stands between Greece and a disorderly default on its debts – as soon as next week – that would force it out of Europe’s joint currency. The package entails about $93 billion in loans over three years in exchange for harsh spending cuts and tax hikes.

The Greek parliament passed the bill on the deal after a marathon debate and just in time for Finance Minister Euclid Tsakalotos to fly to Brussels to seek the seal of approval from his eurozone counterparts as well.

Germany, Greece’s most influential creditor and harshest critic, was cautiously optimistic.

“I think that at the end of today we will have a result,” German Finance Minister Wolfgang Schaeuble said as he arrived for the talks. “If we don’t find a solution, we will have to do bridge financing,” he said, referring to a short-term loan so Greece can make its next debt payment on Aug. 20.

Jeroen Djisselbloem, who chairs the eurozone finance gatherings, said that the meeting “won’t be short,” but that “hopefully at the end of the evening we’ll have a positive outcome.”

The bill passed through the Greek parliament thanks to support from opposition parties, with 222 votes in favor, 64 against, 11 abstentions and three absent in the 300-member parliament.

Although approved by a comfortable majority, the result was a blow to Prime Minister Alexis Tsipras, who saw more than 40 of his 149 radical left Syriza party lawmakers vote against him. He has come under intense criticism from party hardliners for capitulating to the creditors’ demands for budget cuts – austerity measures he had promised to oppose when he won elections in January.

The bill includes reforms increasing personal, company and shipping taxes, reducing some pensions, abolishing tax breaks for some groups considered vulnerable and implementing deep spending cuts, including to the armed forces.

The mounting discord within Syriza is threatening to split the party and could lead to early elections. The stock market in Athens slid on the news and was down 2.4 percent in afternoon trading.