Europeiska rådets ordförande António Costa sade att EU:s ledare inte lyckades enas om budgeten för 2028-2034 efter mer än 12 timmars förhandlingar.