A US airstrike has destroyed an ISIS building which contained huge amounts of cash it used to pay its fighters, defense officials have said.