Nearly until Richard Gates walked into court to plead guilty to conspiracy in a deal with Special Counsel Robert Mueller, some of the former Trump’s aide’s closest friends didn’t know he had sat for hours of interviews with investigators.

They believed he was still gearing up for a fight, according to interviews with multiple people familiar with the events.

New...