Taiwan's high court has rejected the appeal of a train driver sentenced to prison for causing a 2008 derailment that killed 18 people.