Lawmakers wrap up work early on $38B budget bill