After a string of serious railroad accidents in southern Texas , Gov . Rick Perry said yesterday that he had signed an agreement with the nation 's largest railroad , Union Pacific , to work toward moving freight lines out of congested urban areas .