Ecuador is just fine with Mexico's policy of "send back them" (as stated by El Presidente de la Mexico).
This is about getting what's good for getting from Uncle Sam, not about immigration laws that are "unfair".
Ecuador’s head of state is Rafael Correa, a charismatic, European- and US-educated ally of Hugo Chavez. He is as bad as Chavez, appropriates private property, etc., only better looking and nicely dressed. He is happy to take advantage of any opportunity to stick it to us.