LONDON—Britain’s statistics body said it would stop giving the government access to official data ahead of public release, a practice which many U.K. lawmakers had long fought to keep even as statisticians complained it increased the chances of leaks.

The U.K’s Statistics Authority, which is tasked with promoting and safeguarding official data, said that early government access was outweighed by the detriment to public trust in those numbers.

The...