Many waved flags and shouted “Long may he live!” Others filmed the procession with cellphones, a luxury prohibited in Cuba until an ailing Castro gave up power in 2006 to his younger brother, Raul, who began a series of slow reforms.