Yankees acquire All-Star closer in trade