President Donald Trump expressed frustration at Iran’s refusal to comply with American demands to curb its nuclear program.