Malaysia and Indonesia have finally agreed to rescue thousands of stranded migrants