The war was successful and the church was no longer able to remain more powerful than the local rulers.
The Peace of Westphalia of 1648 brought peace and the end of the 30 Years’ War. The Peace of Westphalia acknowledged the development of independent, non-religious, sovereign states that were no longer subject to the centralized authority of the Pope or the emperor.
A new world order had been created; specifically, the nation-state system that we know today.