The bus was on its way back to Barcelona from a day of festivities in Valencia, and officials said they believed most of the victims were foreign students.