Israeli and American authorities spent weeks tracking the movements of senior Iranian leaders, including Supreme Leader Ayatollah Ali Khamenei, sharing information that allowed the strikes to be carried out in a surprise daylight attack, according to an Israeli military official and a person familiar with the operation.