Twenty-three hours of court testimony offer a rare glimpse into the Trump cost-cutting group that officials say “felt more like a club” than the agencies they were breaking.