AMENDED AND RESTATED SHAREHOLDER RIGHTS PLAN AGREEMENT