Budget deal reached at last minute; special session called to pass it