Prisoners promise to “calm down” after meeting government ministers