The EU has approved a €90 billion loan for Ukraine after settling a dispute with Hungary over the Druzhba pipeline.