Israel and Donald Trump had called on the United States to veto the measure.