Immigration legislation takes a hit