Deal struck on immigration bill