I spent some time working with one horse who had a problem with rushing home.
What worked with her was to turn her away from the barn every time she picked up a trot. If she walked quietly, we moved towards home. If she trotted, we moved away from home.
It only took one session with several back-and-forths to have her walking calmly home.
The key to this method is patience. It's very possible that you'll end up a lot farther out than you intended, if you keep having to move farther from the barn before they get the message.