I was pretty sure what the last senate immigration bill was (2013 one). But to be sure I went back and checked. Sure enough, it provided a path to citizenship, and all the usual bureaucratic language about border security, this department to certify that, and all that. But you and I were talking about guest worker.
The bill failed because it gave illegals citizenship, which is not only wrong, but also provides yet another incentive for more illegals to come in. That has already been done in the 80s, I am sure you know that. If it was a guest worker program, it may not have failed. But as I already said, why guest worker won't get support from left.
So yes, it is definitely a what you call bothsides issue. Neither side is sincere on what benefits the country. But that is entirely expect of two powerful corrupt parties.