The US president is following a consistent strategy of creating crises over immigration and race to mobilise white support for Republicans in the midterm elections