Barack Obama opposed illegal immigration and supported border security.