He signaled an openness to a bipartisan immigration deal as Trump purges Homeland Security.