The heads of Arab League countries meeting in Egypt have agree to create a joint Arab military force.