Canadian Pacific Kansas City and Canadian National railroads, which haul millions of tons of freight across the border, have stopped taking certain shipments.