SNP and Labour ministers have been accused of causing “economic damage” to Scotland’s North Sea oil and gas sector.