Legislature burns the midnight oil on a budget bill