Valley Proteins, a Dorchester County poultry rendering plant with a history of pollution problems, has agreed to pay about $1 million to settle lawsuits from environmental groups and the state, officials announced Monday.