Massachusetts legislative leaders announce budget agreement