The unions representing American railroad workers are in talks with major freight railroads over a labor dispute and are expected to go on a nationwide strike Friday unless the two sides reach an agreement.