The UN General Assembly has passed the resolution on transatlantic slavery despite opposition from the US and European countries.