The writer said in a piece for The New York Times that the president had betrayed values long held by Republicans.