The government has backed down on its attempt to reform freedom of information laws after staunch opposition from across parliament and civil society.