ATHENS (Reuters) - Greece’s parliament on Monday passed a swathe of reforms demanded by international lenders in exchange for fresh bailout funds, a success for the government but a blow to thousands of people protesting outside.

The bill introduces a new electronic process for foreclosures on overdue loans and arrears to the state, opens up closed professions, restructures family benefits and makes it harder to call a strike.

About 20,000 people rallied outside parliament during the vote. Bus, subway and city rail services were disrupted and some flights were grounded as workers went on strike to protest against the bill.

“Parliament shouldn’t approve these measures. The government must take them back. They have exhausted us,” said 55-year-old Georgia Koutsoukou, one of the demonstrators.

As the vote was in progress, police fired teargas to disperse protesters who hurled stones and petrol bombs at them. The unrest was brief.

The vote means the government has succeeded in securing the reforms before a Jan. 22 meeting of euro zone finance ministers, who are expected to assess if Greece has done enough to conclude the third review of its current, 86 billion-euro ($106 billion), programme that expires in August.

Concluding the review will help unlock about 6.5 billion euros in bailout loans.

Slideshow ( 8 images )

“Today’s vote is pivotal for the country to successfully emerge from bailouts in seven months,” Greek Prime Minister Alexis Tsipras told parliament, urging his lawmakers in the 300-seat parliament to approve the bill.

The government’s majority increased by one, to 154 seats, following the vote, after an independent deputy said she would join the ruling Syriza party’s parliamentary group.

But the legislation is a bitter pill to swallow for Tsipras’ Syriza whose roots are in left-wing labour activism.

The new law raises the threshold to call a strike to just over 50 percent, from one-third previously. Business owners and Greece’s creditors hope the measure will limit the frequency of strikes and improve productivity, which lags about 20 percent behind the European Union average.