A train derailment in Texas resulted in the deaths of two people and caused significant damage to a city government building.