Obama rebukes Trump for campaign rhetoric