Greek MPs pass a second vote on an unpopular austerity programme, as popular protests against the measures subside.