New York snags the free-agent infielder in a late-night stunner. San Francisco lost Correa over a disagreement about his medicals.