McCain: Immigration reform failure would cost GOP