Spies, secret pacts, and state machinery reveal the controversial efforts to shield former Spanish King Juan Carlos I from scandal.