Union Pacific will part ways with its chief legal officer in March 2025, the latest in a string of U.S. railroad giants changing out law department leadership.