US homeland security chief says border ‘invasion’ could justify suspension of habeas corpus