SECOND AMENDMENT TO THE AMENDED AND RESTATED STIPULATION OF SETTLEMENT