He will now navigate hostilities within his party, economic woes and a period of flux in international relations.