The Justice Department has closed its investigation into possible civil rights violations by six police officers in the 2015 death of Mr. Gray.