President Biden pledged support for Israel and warned its adversaries not to take advantage after a surprise attack by Hamas over the weekend.