State lawmakers working to pass legislation before midnight deadline