UNITED NATIONS — The United States on Wednesday revived its objection to an annual United Nations General Assembly resolution deploring the American trade embargo on Cuba, a year after having abstained from the vote for the first time.

The reversal, which left the United States nearly isolated on the issue at the United Nations, reflected the toughened attitude toward Cuba by President Trump, who has distanced his administration from the historic thaw in relations begun by his predecessor, Barack Obama.

The vote on the resolution in the 193-member General Assembly was 191 to 2. The United States and Israel, which often acts in concert with its American ally, were the lone dissenters.

The State Department had signaled on Tuesday that the United States intended to vote against the resolution, which calls for a repeal of the embargo imposed in 1962 after the break in relations with Cuba.