The vote came a day after a Trump official got into a shouting match with Cuban delegates at the U.N. General Assembly