The U.S. military buildup and escalating rhetoric toward Iran have raised legal questions about the potential use of force.