The OSS was a wartime intelligence and action agency, duly created and authorized by the president and funded by Congress.
The same could be said of the FBI, the CIA, and the NSA. All agencies that have often gone rogue.