Crisis averted in Greek bailout