Labour has failed in its bid to force the release of documents about school repairs spending when Rishi Sunak was chancellor.
The party wanted ministers to publish details of past funding decisions after school closures due in England due to crumbling concrete.
But the attempt was blocked after the government ordered Conservative MPs to vote it down.
Education Secretary Gillian Keegan accused Labour of "playing politics".
She said the documents, on past spending negotiations, contained "sensitive" information - and disclosing them would jeopardise the ability of officials to offer frank advice to ministers in the future.
But shadow education secretary Bridget Phillipson accused her of trying to "spread responsibility" for the crisis, adding the prime minister needed to "come clean" about what he knew of the risks.
"The Conservatives have voted to cover up the truth about the prime minister's failure to act on dangerous buildings and the true scale of this crisis," she said.