Legislation preventing undocumented migrants crossing the border from Mexico is extended.