The Illinois Democrat added that the president will face a legal battle if he declares a national emergency to build a border wall