Obama, like Trump, grappled with family immigration