WASHINGTON — The Justice Department has opened a criminal investigation into whether President Trump’s former national security adviser John R. Bolton unlawfully disclosed classified information when he published a memoir this summer, a case that the department opened after it failed to stop the book’s publication this summer, according to three people familiar with the matter.