Greek leaders agree to spending cuts