A problem created in weeks is answered by a solution that can take months, creating an awkward political misalignment for Trump.