The legal proceedings that threatened to knock Mexico 's most popular politician off next year 's presidential ballot and to plunge this country into turmoil seemed to come to a sudden end on Wednesday night , when a beleaguered President Vicente Fox announced the resignation of his attorney general and a review of the government 's case against the politician .