U.S. President Barack Obama pledged on Wednesday to work closely with Israel and do whatever was necessary to keep the Islamic Republic from obtaining nuclear arms, "the world's worst weapons."