The first group from the 8,000 Cuban migrants stranded in Costa Rica since December have arrived in Mexico.