Gates wins with 'sweet' US deal