Canadian National Railway Co. raised its dividend as it reported its fourth-quarter profit and revenue rose compared with a year earlier.