New York’s baseball teams have swapped relievers, with the Mets sending right-hander Miguel Castro to the Yankees for left-hander Joely Rodriguez.