[A] sweeping new exhibit at The New York Historical highlights how this era was — as Henry Louis Gates Jr. once put it — “surely as gay as it was Black.”