The Israeli prime minister has applauded the US veto of a UN Security Council resolution calling for a ceasefire in Gaza.