Depends what you call friend...the US was caught supplying weapons to Iran during the Iran-contra affair in 1986? Or was that just business?

Lets look at the other "terrorist" states...

Syria- just before the US begins bombing the place, remember they were also a friend - they were a US ally in the first Iraq war and routinely tortured al-qaeda suspects at the behest of the US

Iraq- the US provided huge military and diplomatic support during the Iran/Iraq war

Afghanistan - a US ally right through the cold war and into the 80's with the US funding the Mujahideen to the tune of billions of dollars and essentially using the country as a CIA base

Saudi Arabia - speaks for itself

By the way, the UK wasnt exactly a shining light in the middle east in the not so distant past