US president says both Iran, Israel violated ceasefire