The Missouri-based company has decided that a $31-billion bid from Canadian Pacific is the best of two offers on the table.