Immigration bill shaping up, but fate still uncertain