Seven years after the biggest drug safety scandal since thalidomide was found to cause birth defects, Merck and the Justice Department announced a nearly $1 billion settlement of litigation over Vioxx, the Cox-2 pain drug found to cause strokes and heart attacks.