Israel and Morocco agreed on Thursday to normalize relations in a deal brokered with U.S. help.