A bureaucratic error has rendered eight years' worth of approvals for oil and gas operations in sensitive marine areas invalid, Resources Minister Josh Frydenberg has revealed, forcing the government and Labor to rush through laws to make the projects legal.