The Environmental Protection agency has agreed in principle to a $1.4 million settlement with a subsidiary of Monsanto Co. accused of contaminating groundwater and a stream with selenium and other heavy metals at its phosphate mining operation in southeastern Idaho.