House Speaker Paul Ryan moves to stop Republican revolt on immigration