The European Union decided Thursday to open accession negotiations with Ukraine, a stunning reversal for a country at war that had struggled to find the necessary backing for its membership aspirations and long faced opposition from Hungarian Prime Minister Viktor Orban.