Costa Rican riot police sealed the country's border with Panama to Cuban migrants trying to reach the U. S.