Spain’s worst rail crash in decades left at least 77 people dead and dozens more injured, officials said on Thursday, as investigators tried to establish how a passenger train that some reports said was traveling at excessive speed derailed outside Santiago de Compostela.