Greece beats a key bailout target but faces hard choices