The settlement was reached five months after Gray, 25, died from a neck injury while in police custody.