U.S. stock futures gained Sunday, despite coming off the worst week for tech stocks since April, as investors welcomed a tentative Senate deal that may soon end the government shutdown.