Well the military purpose was why the Shuttle was so crappy. The original design was smaller and meant to sit on top of its rocket. This would have probably prevented loss of crew in both of the instances where shuttle failed.
Shuttle regularly launched spy sats and was designed to grab an enemy one in a single orbit mission. Also Soviets believed it would nuke Moscow by sudden plane change via its wings & build their own version as a result.
The bombing of the Soviet Union was to happen via polar launch. The wings were there not for plane change, rather for cross range landing after the single orbit polar mission.
The Space Shuttle never had a combat mission, in the sense that it was never used to drop bombs via polar orbit over the Soviet Union. But of course it had tens of military missions, the Shuttle launched many department of defense satellites.