Legislature finishes fixes to state budget