U.S. government nears shutdown amid scramble to strike a deal