The sentence means that:
legislators have bad intentions.
legislators like to travel by train.
legislators should be forced to work on the railroad.