Both the Israeli and US governments say recognition is a diplomatic gift for Hamas, warning it will bolster the group.