A state-sponsored company that directed millions of dollars from foreign investors to the idled Northern Beef Packers plant and other projects in South Dakota before running afoul of authorities also attempted to help finance the now-stalled Keystone XL oil pipeline, documents show.