The UN General Assembly has adopted a resolution urging Myanmar to end the military campaign against Muslim Rohingyas.