The resolution was approved by consensus by the assembly’s legal committee, which includes all 193-member U.N. nations