Eighty-seven people, including 10 members of staff, were on board the 4.28am service from Glasgow to Euston when it came off the tracks in Cumbria.