(Reuters) - The S&P and the Nasdaq hit fresh records on Monday as investors bet U.S. lawmakers would strike a deal to end a federal government shutdown and as a flurry of deals buoyed sentiment.