The former engineer for Keolis Commuter Services accused of stealing more than $8 million that was meant for the MBTA Commuter Rail system has pleaded guilty.