Britain’s justice department said Monday that it shut down online services for legal aid recipients and the lawyers paid to help them after a cyberattack compromised personal information including criminal records, national insurance numbers and payment details.