Oregon Senate leaders on Thursday reached a deal that brought a handful of Republicans back to the floor, ending the longest walkout in state history and clearing the way for the Legislature to pass a budget and start working through hundreds of backlogged bills.