Miracle win offers Australian PM authority and government stability