It was the perfect answer. The *only* right thing to do was to do the morally repugnant thing. Any president worth their salt would have had to do it. It just was just Bartlett's luck that he was president.
Every leader has to make morally repugnant decisions sometimes. The good ones will care.