YouTube Agrees to Pay Royalties, Ending German Music Dispute