Legislature, flush with cash, passes budget, completing work for 2024 session