Donald Trump says a Palestinian student activist detained by federal immigration agents is "anti-American".