Immigration bill stalled as Republicans fight internal battles