Greek police fired teargas and battled masked demonstrators who attacked the finance ministry on Wednesday after lawmakers passed the first of two austerity bills demanded by international lenders to stave off default.

As thousands of protesters rallied outside parliament, deputies voted by 155 to 138 to pass a framework bill on a bitterly contested package of tax hikes, spending targets and privatizations agreed as part of an EU/IMF bailout.