An offer of sunscreen to inmates who climbed onto a jail's roof in hot weather was "foolish", the prisons minister has said.
Jeremy Wright said that he has ordered an immediate review into the matter.
"This should not have happened," Mr Wright said.
"There should be no policies in place which promote this kind of foolishness and I have ordered an immediate review of this incident to ensure that it does not happen again."
More top news
The ruling means Mr Trump cannot enforce his ban, which blocks new visas for people from six predominantly Muslim countries.
Thursday could be the warmest day of 2017 so far, with temperatures of 22C (72F) forecast, double the average for March.
Former cricketer Andrew Flintoff and Tony Blair's ex-spin doctor Alastair Campbell talk about mental health battles in a series of films.