Central American countries reach breakthrough to allow thousands of migrants to continue their journey to the US.