Greece downgraded after bailout deal