Legislature reaches first agreement on state budget, will hold public negotiating sessions