Forest Pharmaceuticals pays $313 million in settlement deal