Iran and Israel agreed to a ceasefire after a 12-day war, proposed by the U.S. President Donald Trump and mediated by Qatar.