Israel has said it rejects a UN resolution declaring its settlements in occupied Palestinian territories illegal, and says it will not abide by its terms.