The Treasury’s top officials has denied breaking the law over the £22 billion “black hole” Chancellor Rachel Reeves claimed to have found in the public finances.