The European Union has approved funding for joint defence procurement by its member states for the first time in its history.