Injectable weight-loss drugs can reduce the risk of serious cardiovascular events for people with type 2 diabetes.