Controversial leader signs resignation letter, signalling an end to a seven-week long political crisis.