Immigration bill in doubt after vote