This is easy. Obama is a racist and in his own words (well Ayers's words) "I hate whites with a searing passion." Veterans are mostly white. Illegals are mostly not white.
Obama, like most narcissists, is a very basic and hateful man. Given the circumstances around any decision 99% of the time I can guess which way he will go.