A multi-billion-euro funding package for the European Space Agency is agreed by its member states.