US senators close in on deal as threat of default nears