Double-digit increases in automotive and chemical shipments, along with lower fuel prices, drove Union Pacific to a record profit of $1 billion in the second quarter.