European Union leaders unanimously agreed on Thursday to extend 50 billion euros in aid to Ukraine, the chairman of the summit said, overcoming weeks of resistance from Hungary.