Rite Aid Corp. was ordered today to pay more than $12.3 million to settle a lawsuit that alleged employees at about 600 California stores unlawfully handled and disposed of hazardous materials, such as bleaches and pesticides, Los Angeles County District Attorney Jackie Lacey said.