European Union leaders have committed to funding Ukraine's economic and military needs for the next two years.