President Donald Trump has signaled that attacks on Iran could continue for weeks, further diminishing hopes for a deal to end the conflict.