Walmart proposed a $3.1 billion legal settlement on Tuesday over the toll of powerful prescription opioids sold at its pharmacies, becoming the latest major drug industry player to promise major support to state, local and tribal governments still grappling with a crisis in overdose deaths.