Lawmakers on Saturday night came to a last minute deal to keep the rideshare companies, Uber and Lyft, in the state.