The measure passes after the US refrains from using its veto, in a shift from its previous position.