The UN General Assembly has voted to set up a panel to look into war crimes and human rights abuses committed during the Syrian war.