State lawmakers wrap up session with early-morning passage of $46.5 billion budget