Pakistan's startling accord with Taliban fighters that would impose Islamic religious law on the strategic Swat valley looms as a setback for the Obama administration's hopes to mount a united front against militants there and in Afghanistan.