The Ministry of Justice today won a High Court injunction to stop an illegal national strike by thousands of prison officers.