Global markets gain, Greece passes austerity bill