President Donald Trump has said he will consider sending the suspected New York City vehicle attacker to the prison in Guantanamo Bay, Cuba.