Rory McIlroy admits he has been taken aback by the criticism he has received for agreeing to play a round of golf with President Trump.