Tasmania has avoided an early state election after embattled Attorney General Elise Archer confirmed she would resign.