Amazon.com Inc on Thursday said it had closed its $8.5 billion deal to buy MGM, combining the fabled moviemaker behind…