Merck agrees to pay nearly $5 billion to settle lawsuits from consumers contending the painkiller Vioxx caused heart attacks and strokes. The safety problems of Vioxx and the withdrawal of Vioxx from the market was a watershed event in regulating prescription drugs in the U.S.