Logically he should be able to easily resist it. Based off of hype and the fact that it was never stated there was a counter to KA it should be able to work on Kaguya.
I'm going to side with logic though since it would be stupid to think a MS genjutsu is going to work on someone with rinnegan and EMS.