Legislature passes budget as session wraps up