ATHENS — The Greek Parliament and eurozone ministers approved an international loan deal on Friday that the Greek government needs to avoid defaulting on a debt payment next week. But an all-night debate required in Greece, and a growing rebellion within Prime Minister Alexis Tsipras’s leftist Syriza party, seemed to have pushed his coalition closer to spinning apart.

The dissent may force Mr. Tsipras to soon call for a vote of confidence in his government.

With 222 Greek lawmakers approving the bill, 75 voting against it or abstaining, and three absent, Parliament signed off on a package that would grant Greece as much as 86 billion euros, or about $95 billion. Later in the day, the deal was ratified by eurozone finance ministers in an emergency meeting in Brussels. The accord requires Greece to put in place strict spending limits, new tax increases and sweeping changes in the way it manages its economy.

But the terms, which also include raising the retirement age and opening various parts of the Greek economy to greater competition, have proved unacceptable to a growing number of lawmakers in Mr. Tsipras’s government.

While the measure received the support of some members of the opposition, it had the backing of only 118 lawmakers in the government coalition — fewer than the 120 lawmakers that Mr. Tsipras needs to survive politically.