Mexico writes off "safe third country" immigration deal with U.S.