Viacom and Snapchat are taking their content deal a step further with a multiyear agreement that allows the media company to sell advertising on Snapchat’s behalf. For Snapchat, the move could help lure in more big advertisers to the millennial-focused platform.