NSA paid millions to internet firms to offset Prism costs