A federal judge in Washington, D.C., signed off on a record $5 billion fine imposed by the U.S. Federal Trade Commission on Facebook for allegedly violating federal law and a previous order with its privacy practices.

In an opinion issued Thursday night, U.S. District Judge Timothy Kelly of the District of Columbia approved the settlement and sharply criticized Facebook’s alleged conduct, which stemmed from the Cambridge Analytica scandal. A whistleblower revealed in 2018 that Cambridge Analytica had harvested data from millions of Facebook users without their knowledge or permission and used the information for political ads.