The Greek parliament approved a painful set of austerity measures on Thursday, defying violent protests in central Athens and a general strike which shut down much of the country.