Obama’s words draw praise from unlikely quarters.