The president warned that he would shut the border if Mexico does not stop migrants or if Congress can't reach a deal to fix immigration laws.