The president says the move is "necessary" to protect immigration detention facilities from "domestic terrorists".