What it covers, in one sentence
Financial loss arising from enforcement action by the local authority over the absence of building regulations approval. That is the insured risk, and the policy is usually a one-off premium with cover running indefinitely and passing to later owners.
It is not a warranty, a guarantee or a certificate. Nobody has inspected the work in order to issue it; the insurer is pricing a small statistical risk, not forming a view about this house.