Facebook is offering major record labels and music publishers hundreds of millions of dollars so the users of its social network can legally include songs in videos they upload, according to people familiar with the matter. The use of video on Facebook has exploded in recent years, and many of the videos feature music to which Facebook doesn’t have the rights.