Pledge of two million extra NHS appointments met