Canadian National Railway pleaded guilty and paid fines to settled environmental charges stemming from two high-profile derailments in Western Canada, officials said on Monday.