European Union ratifies 2018 budget