Then news this morning that the Cuban government is finally freeing Alan Gross, an American unjustly imprisoned there for the last five years, is cause for celebration. The release of Gross, a Jewish aid worker who was trying to help the Cuban people, not to spy on their government, was long overdue and the seemingly lackluster efforts to free him by the Obama administration were discouraging. But the administration and the Cuban government obviously was interested in achieving something more than a prisoner exchange as they engaged in negotiations. The result of a reported 18 months of talks was not merely the end of Gross’s ordeal but the restoration of full diplomatic relations with Cuba’s Communist government after more than a half century of conflict. This is something about which Americans should feel less than enthusiastic.

We are told that Gross’s freedom, along with that of 53 human-rights prisoners, is for humanitarian reasons and not part of a prisoner exchange in which Havana released another person (dubbed a U.S. “intelligence asset”) for three Cuban spies. But the real focus of American policy here was on President Obama’s goal of engagement with America’s foes. As with his outreach to Iran, the president’s belief that diplomacy can smooth out if not entirely erase our differences with dangerous regimes has become the engine of American foreign policy during his administration. Whether it is the failed attempts at resets of relations with the Putin regime in Russia or the long-running effort to appease the Islamist regime in Tehran, the point of American efforts is not so much the achievement of tangible goals or the enhancement of U.S. security as it is on the promotion of good will with nations that have little or no regard for U.S. values or interests.

In pursuit of this amorphous goal, the administration has made bargains, like the interim nuclear accord signed with Iran last year, that do little to promote U.S. goals but allow the president to keep talking with hostile nations. It is in this context that we must view any effort to normalize relations with a tyrannical Cuban government.

It should be conceded that the American embargo on Cuba, which can only be lifted by Congress and not by presidential fiat, has not been effective in isolating that country or in promoting change there. But even if we recognize that this is true, neither should the U.S. be blamed for the endemic poverty in Cuba. After all, many American businesses have obtained exemptions for conducting commerce there and virtually every other nation on the planet does have trade with Cuba. Poverty in Cuba is caused by Communism and the repression that is inherent in the system that the aging Castro brothers have imposed on this tortured island prison.

The arguments for opening U.S. trade with Cuba revolve around the idea that engagement will undermine the Communist system and the regime. It should also be noted that when you consider that America has intense economic relations with China, the world’s largest tyranny, the insistence on isolating a far smaller one in Cuba doesn’t seem to make sense. Seen from that perspective, President Obama’s decision to end 51 years of diplomatic estrangement and to open up trade with it will probably do little harm and perhaps lead to some good.

But there are two underlying dynamics to the decision that are deeply troubling.

The first is that this rapprochement has been achieved by blackmail by a vicious totalitarian state rather than an honest and open diplomatic process. Though we are supposed to believe that Gross’s freedom was incidental to the agreement, it’s clear that his unjust imprisonment raised the price of the payoff Obama was preparing to hand the Castros in order to achieve what he is claiming as a foreign-policy triumph. This is a clear signal to other tyrannies that Washington can be fleeced if a U.S. hostage can be held for ransom.

Second, while America’s efforts had not led to freedom for Cuba, it’s far from clear that what will follow the president’s decision will actually end the Cuban people’s long Communist ordeal. Here, the China precedent is both instructive and chilling. By cooperating in this manner the U.S. is going from a position of futile hostility against Communism to one in which it will be directly complicit in the efforts of this brutal regime to survive. Just as American economic ties helped the communists in Beijing to succeed where those in Moscow failed at the end of the Cold War, so, too, is it likely that all that will be accomplished here is an infusion of American cash and legitimacy that will give a failed, bankrupt yet vicious government a new lease on life.

Though he paid lip service to the cause of promoting freedom when he spoke today, as with so many of his foreign-policy initiatives, the president’s focus is more on repudiating longstanding American policies than on actually helping anyone in Cuba. Nor has he extracted a fair price for granting the Castros what they have been demanding for decades. At a time when Cuba’s main allies, especially Venezuela, are in extremis due to the fall in oil prices, this was the moment for the U.S. to get more than just the freedom of Gross. But, as he has done with the even more dangerous regime in Iran, Obama paid a lot and got nothing for the Cuban people.

We can hope that Cubans will benefit to some extent from this decision but it is doubtful that they will be freer or that their prospects for liberty have been improved. Though the end of the break with Cuba is not nearly as significant as it might have been during the Cold War, it does send a message to every other American foe that the U.S. can be bought off cheaply. That’s an ominous precedent for the nuclear talks with Iran and every other dangerous situation faced by the U.S. while Obama is in the White House.